From de3461655214cb0c63243574eadc5b7a172de94f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vedat=20G=C3=BCnel?= Date: Sun, 10 Jan 2021 15:56:51 +0300 Subject: [PATCH] Change reserved keyword in Regex documentation code (cherry picked from commit 446a3f8ff23ca26aa4bb5d2ed7bfc49f2941777d) --- modules/regex/doc_classes/RegEx.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/regex/doc_classes/RegEx.xml b/modules/regex/doc_classes/RegEx.xml index c6eb7d74038..61f17438c26 100644 --- a/modules/regex/doc_classes/RegEx.xml +++ b/modules/regex/doc_classes/RegEx.xml @@ -39,8 +39,8 @@ var regex = RegEx.new() regex.compile("\\S+") # Negated whitespace character class. var results = [] - for match in regex.search_all("One Two \n\tThree"): - results.push_back(match.get_string()) + for result in regex.search_all("One Two \n\tThree"): + results.push_back(result.get_string()) # The `results` array now contains "One", "Two", "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].