diff options
Diffstat (limited to 'tests/accept/run/tregex.nim')
-rwxr-xr-x | tests/accept/run/tregex.nim | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/tests/accept/run/tregex.nim b/tests/accept/run/tregex.nim deleted file mode 100755 index 43dc8f99c..000000000 --- a/tests/accept/run/tregex.nim +++ /dev/null @@ -1,19 +0,0 @@ -# Test the new regular expression module -# which is based on the PCRE library - -import - re - -if "keyA = valueA" =~ re"\s*(\w+)\s*\=\s*(\w+)": - write(stdout, "key: ", matches[0]) -elif "# comment!" =~ re"\s*(\#.*)": - echo("comment: ", matches[0]) -else: - echo("Bug!") - -if "Username".match(re"[A-Za-z]+"): - echo("Yes!") -else: - echo("Bug!") - -#OUT key: keyAYes! |