summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-01-11 12:01:54 +0100
committerGitHub <noreply@github.com>2021-01-11 12:01:54 +0100
commit29db5bd25e4ae475bd3eff127f3f0dfd7caaec70 (patch)
treed5593989c97828723b00c9456b1ce0bcb45ff7b6 /modules
parent43ab64048373414ed0d88248af50f076e4a48123 (diff)
parent446a3f8ff23ca26aa4bb5d2ed7bfc49f2941777d (diff)
Merge pull request #45075 from VedatGunel/reserved-keyword
Change reserved keyword in Regex documentation code
Diffstat (limited to 'modules')
-rw-r--r--modules/regex/doc_classes/RegEx.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/regex/doc_classes/RegEx.xml b/modules/regex/doc_classes/RegEx.xml
index 312275842a..b21f5d1e7a 100644
--- a/modules/regex/doc_classes/RegEx.xml
+++ b/modules/regex/doc_classes/RegEx.xml
@@ -39,8 +39,8 @@
var regex = RegEx.new()
regex.compile("\\S+") # Negated whitespace character class.
var results = []
- for match in regex.search_all("One Two \n\tThree"):
- results.push_back(match.get_string())
+ for result in regex.search_all("One Two \n\tThree"):
+ results.push_back(result.get_string())
# The `results` array now contains "One", "Two", "Three".
[/codeblock]
[b]Note:[/b] Godot's regex implementation is based on the [url=https://www.pcre.org/]PCRE2[/url] library. You can view the full pattern reference [url=https://www.pcre.org/current/doc/html/pcre2pattern.html]here[/url].