summaryrefslogtreecommitdiffstats
path: root/tests/regexp.1.js
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2012-10-19 23:10:42 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2012-10-20 12:33:20 +0200
commit04b12a90b8ac5c44097bbf60a730f36b58578086 (patch)
treedf8d21d87c75548aaa07d66b1fe3d2333c6387c4 /tests/regexp.1.js
parentacfb62cc2e6a85a5546dec3f586cf0cdf3deb7ca (diff)
Implement regexp support
Change-Id: I86c9bbe69c9ba4ae9d300b62e7d16b372f3478ea Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'tests/regexp.1.js')
-rw-r--r--tests/regexp.1.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/regexp.1.js b/tests/regexp.1.js
new file mode 100644
index 00000000..c508bd53
--- /dev/null
+++ b/tests/regexp.1.js
@@ -0,0 +1,4 @@
+var re = new RegExp("abc")
+print(re)
+var match = re.exec("xxxabc")
+print(match.length, match.index, match[0])