summaryrefslogtreecommitdiff
path: root/modules/regex/doc_classes
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-08-02 18:16:04 +0200
committerGitHub <noreply@github.com>2022-08-02 18:16:04 +0200
commitc67febb008675fff6ebbac40d3a0565f937f2f8c (patch)
tree08f486732447b867847bdffe2edb9df191c3b462 /modules/regex/doc_classes
parent47be80905c2ffe8fcc7e33d1cffb9685bb461929 (diff)
parent61a2cb65b1338cd6ac02500f6c8f7da21e858c6f (diff)
Merge pull request #63830 from KoBeWi/regEX
Add static method for creating RegEx
Diffstat (limited to 'modules/regex/doc_classes')
-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" />