summaryrefslogtreecommitdiff
path: root/demos/misc/regex
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-06-03 10:30:38 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-06-03 10:30:38 -0300
commitc7d45ec085086ab86192a7890b9622320d57b89d (patch)
tree0a764a6a2b7bded960a652c81a4b5a6815dd3c31 /demos/misc/regex
parentf9af57f3bdb16e015ee10b979fe18cf2195077f9 (diff)
Removed demos
they go to their own project now
Diffstat (limited to 'demos/misc/regex')
-rw-r--r--demos/misc/regex/engine.cfg5
-rw-r--r--demos/misc/regex/icon.pngbin2215 -> 0 bytes
-rw-r--r--demos/misc/regex/regex.gd28
-rw-r--r--demos/misc/regex/regex.scnbin1775 -> 0 bytes
4 files changed, 0 insertions, 33 deletions
diff --git a/demos/misc/regex/engine.cfg b/demos/misc/regex/engine.cfg
deleted file mode 100644
index ef5483e096..0000000000
--- a/demos/misc/regex/engine.cfg
+++ /dev/null
@@ -1,5 +0,0 @@
-[application]
-
-name="RegEx"
-main_scene="res://regex.scn"
-icon="res://icon.png"
diff --git a/demos/misc/regex/icon.png b/demos/misc/regex/icon.png
deleted file mode 100644
index 7a5232ec4b..0000000000
--- a/demos/misc/regex/icon.png
+++ /dev/null
Binary files differ
diff --git a/demos/misc/regex/regex.gd b/demos/misc/regex/regex.gd
deleted file mode 100644
index 98e5ca8828..0000000000
--- a/demos/misc/regex/regex.gd
+++ /dev/null
@@ -1,28 +0,0 @@
-
-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")
- for child in list.get_children():
- child.queue_free()
- if regex.is_valid():
- regex.find(text)
- for res in regex.get_captures():
- var label = Label.new()
- 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
deleted file mode 100644
index debd55504f..0000000000
--- a/demos/misc/regex/regex.scn
+++ /dev/null
Binary files differ