summaryrefslogtreecommitdiff
path: root/demos/misc/regex
diff options
context:
space:
mode:
authorZher Huei Lee <lee.zh.92@gmail.com>2015-07-24 14:09:39 +0100
committerZher Huei Lee <lee.zh.92@gmail.com>2015-07-24 14:09:39 +0100
commit87c1e16834a21ac1e42321811cb0efcda4b91b9a (patch)
treec071b6446032791612d4dcf6814871e4c644e810 /demos/misc/regex
parent4ca0399ff6a16c7e5e760d57a7675df61f1f8ef0 (diff)
Made RegEx API similar to old version
Diffstat (limited to 'demos/misc/regex')
-rw-r--r--demos/misc/regex/regex.gd4
-rw-r--r--demos/misc/regex/regex.scnbin1770 -> 1772 bytes
2 files changed, 2 insertions, 2 deletions
diff --git a/demos/misc/regex/regex.gd b/demos/misc/regex/regex.gd
index a2dc62bf83..e648c18093 100644
--- a/demos/misc/regex/regex.gd
+++ b/demos/misc/regex/regex.gd
@@ -8,11 +8,11 @@ func update_expression():
func update_text():
var text = get_node("Text").get_text()
- regex.match(text)
+ regex.find(text)
var list = get_node("List")
for child in list.get_children():
child.queue_free()
- for res in regex.get_capture_list():
+ for res in regex.get_captures():
var label = Label.new()
label.set_text(res)
list.add_child(label)
diff --git a/demos/misc/regex/regex.scn b/demos/misc/regex/regex.scn
index 591b60974a..2b62d6b82a 100644
--- a/demos/misc/regex/regex.scn
+++ b/demos/misc/regex/regex.scn
Binary files differ