Skip to content

Commit 5aa87e2

Browse files
committed
Add web-visible help for reverse-string for advanced tests
1 parent d7a1b05 commit 5aa87e2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Instructions append
2+
3+
## Handling grapheme clusters
4+
5+
- The [built-in `RegEx` class][regex] can be used to find grapheme clusters.
6+
- The regular expression pattern `\X` matches grapheme clusters.
7+
- Backslashes (`\` characters) need to be escaped in regular strings (`"\\X"`), but not in [raw strings][literals] (`r"\X"`).
8+
- `RegEx` has a [method][search_all] that returns an array of `RegExMatch`es.
9+
- Each match object has [a method][get_string] that returns the search result as a string.
10+
11+
[regex]: https://docs.godotengine.org/en/stable/classes/class_regex.html
12+
[literals]: https://docs.godotengine.org/en/stable/tutorials/scripting/gdscript/gdscript_basics.html#literals
13+
[search_all]: https://docs.godotengine.org/en/stable/classes/class_regex.html#class-regex-method-search-all
14+
[get_string]: https://docs.godotengine.org/en/stable/classes/class_regexmatch.html#class-regexmatch-method-get-string

0 commit comments

Comments
 (0)