Fix RegEx example in class doc and correct typo

Fix minor errors to do with `search_all` example in RegEx and
typo in RegExMatch class docs.
This commit is contained in:
Maganty Rushyendra
2020-06-15 10:23:55 +08:00
parent 6fa2a5ac14
commit e5d93f7a66
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -32,8 +32,7 @@
[codeblock]
for result in regex.search_all("d01, d03, d0c, x3f and x42"):
print(result.get_string("digit"))
# Would print 01 03 3f 42
# Note that d0c would not match
# Would print 01 03 0 3f 42
[/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].
[b]Tip:[/b] You can use [url=https://regexr.com/]Regexr[/url] to test regular expressions online.