diff options
Diffstat (limited to 'demos/misc/regex')
-rw-r--r-- | demos/misc/regex/regex.gd | 6 | ||||
-rw-r--r-- | demos/misc/regex/regex.scn | bin | 1793 -> 1775 bytes |
2 files changed, 5 insertions, 1 deletions
diff --git a/demos/misc/regex/regex.gd b/demos/misc/regex/regex.gd index 409b4cab05..98e5ca8828 100644 --- a/demos/misc/regex/regex.gd +++ b/demos/misc/regex/regex.gd @@ -1,11 +1,15 @@ + extends VBoxContainer +# Member variables var regex = RegEx.new() + func update_expression(text): regex.compile(text) update_text() + func update_text(): var text = get_node("Text").get_text() var list = get_node("List") @@ -18,7 +22,7 @@ func update_text(): label.set_text(res) list.add_child(label) + func _ready(): get_node("Text").set_text("They asked me \"What's going on \\\"in the manor\\\"?\"") update_expression(get_node("Expression").get_text()) - diff --git a/demos/misc/regex/regex.scn b/demos/misc/regex/regex.scn Binary files differindex 1f46521d0d..debd55504f 100644 --- a/demos/misc/regex/regex.scn +++ b/demos/misc/regex/regex.scn |