Made RegEx API similar to old version

This commit is contained in:
Zher Huei Lee
2015-07-24 14:09:39 +01:00
parent 4ca0399ff6
commit 87c1e16834
5 changed files with 17 additions and 15 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.