summaryrefslogtreecommitdiff
path: root/modules/regex/doc_classes/RegEx.xml
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2022-08-02 15:56:46 +0200
committerkobewi <kobewi4e@gmail.com>2022-08-02 15:56:46 +0200
commit61a2cb65b1338cd6ac02500f6c8f7da21e858c6f (patch)
treeca8451a776298ba4ca9890b2a89151918de7479c /modules/regex/doc_classes/RegEx.xml
parent4f8d31fc68c1b2276cbcbb62a308d59313b9fac6 (diff)
Add static method for creating RegEx
Diffstat (limited to 'modules/regex/doc_classes/RegEx.xml')
-rw-r--r--modules/regex/doc_classes/RegEx.xml9
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/regex/doc_classes/RegEx.xml b/modules/regex/doc_classes/RegEx.xml
index deabc5ccd3..52a7fe492f 100644
--- a/modules/regex/doc_classes/RegEx.xml
+++ b/modules/regex/doc_classes/RegEx.xml
@@ -62,6 +62,13 @@
Compiles and assign the search pattern to use. Returns [constant OK] if the compilation is successful. If an error is encountered, details are printed to standard output and an error is returned.
</description>
</method>
+ <method name="create_from_string" qualifiers="static">
+ <return type="RegEx" />
+ <argument index="0" name="pattern" type="String" />
+ <description>
+ Creates and compiles a new [RegEx] object.
+ </description>
+ </method>
<method name="get_group_count" qualifiers="const">
<return type="int" />
<description>
@@ -96,7 +103,7 @@
</description>
</method>
<method name="search_all" qualifiers="const">
- <return type="Array" />
+ <return type="RegExMatch[]" />
<argument index="0" name="subject" type="String" />
<argument index="1" name="offset" type="int" default="0" />
<argument index="2" name="end" type="int" default="-1" />