Made RegEx API similar to old version

This commit is contained in:
Zher Huei Lee
2015-07-24 14:09:39 +01:00
parent f3b17395a5
commit 90f690962a
2 changed files with 2 additions and 2 deletions

View File

@@ -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)

Binary file not shown.