File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
exercises/practice/reverse-string/.docs Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments