Sync classref with current source

This commit is contained in:
Rémi Verschelde
2020-01-23 23:15:53 +01:00
parent 2e4df1e5c2
commit acb2260336
125 changed files with 1868 additions and 2258 deletions

View File

@@ -25,7 +25,7 @@ To begin, the RegEx object needs to be compiled with the search pattern using :r
var regex = RegEx.new()
regex.compile("\\w-(\\d+)")
The search pattern must be escaped first for gdscript before it is escaped for the expression. For example, ``compile("\\d+")`` would be read by RegEx as ``\d+``. Similarly, ``compile("\"(?:\\\\.|[^\"])*\"")`` would be read as ``"(?:\\.|[^"])*"``
The search pattern must be escaped first for gdscript before it is escaped for the expression. For example, ``compile("\\d+")`` would be read by RegEx as ``\d+``. Similarly, ``compile("\"(?:\\\\.|[^\"])*\"")`` would be read as ``"(?:\\.|[^"])*"``.
Using :ref:`search<class_RegEx_method_search>` you can find the pattern within the given text. If a pattern is found, :ref:`RegExMatch<class_RegExMatch>` is returned and you can retrieve details of the results using functions such as :ref:`RegExMatch.get_string<class_RegExMatch_method_get_string>` and :ref:`RegExMatch.get_start<class_RegExMatch_method_get_start>`.