diff options
author | Micky <micheledevita2@gmail.com> | 2024-09-06 00:25:59 +0200 |
---|---|---|
committer | Micky <micheledevita2@gmail.com> | 2024-11-11 12:05:34 +0100 |
commit | 932b1c434c806f410c7ada06731077e4a621dd91 (patch) | |
tree | 42e146c51e580c08a0abab4c95139eca5a5f7b14 /modules/regex/doc_classes | |
parent | 835808ed8fa992c961d6989f0a0c48ed2abd69bd (diff) | |
download | redot-engine-932b1c434c806f410c7ada06731077e4a621dd91.tar.gz |
Clean up more `[b]Example:[/b]` lines from the class reference
Diffstat (limited to 'modules/regex/doc_classes')
-rw-r--r-- | modules/regex/doc_classes/RegEx.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/regex/doc_classes/RegEx.xml b/modules/regex/doc_classes/RegEx.xml index e12dc43b6f..66e7cd5a0b 100644 --- a/modules/regex/doc_classes/RegEx.xml +++ b/modules/regex/doc_classes/RegEx.xml @@ -34,14 +34,14 @@ print(result.get_string("digit")) # Would print 01 03 0 3f 42 [/codeblock] - [b]Example of splitting a string using a RegEx:[/b] + [b]Example:[/b] Split a string using a RegEx: [codeblock] var regex = RegEx.new() regex.compile("\\S+") # Negated whitespace character class. var results = [] for result in regex.search_all("One Two \n\tThree"): results.push_back(result.get_string()) - # The `results` array now contains "One", "Two", "Three". + # The `results` array now contains "One", "Two", and "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]. [b]Tip:[/b] You can use [url=https://regexr.com/]Regexr[/url] to test regular expressions online. |