summary refs log tree commit diff stats
path: root/tests/tregex.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tregex.nim')
-rwxr-xr-xtests/tregex.nim19
1 files changed, 0 insertions, 19 deletions
diff --git a/tests/tregex.nim b/tests/tregex.nim
deleted file mode 100755
index d9d22d603..000000000
--- a/tests/tregex.nim
+++ /dev/null
@@ -1,19 +0,0 @@
-# Test the new regular expression module

-# which is based on the PCRE library

-

-import

-  regexprs

-
-if "keyA = valueA" =~ r"\s*(\w+)\s*\=\s*(\w+)":
-  write(stdout, "key: ", matches[1])
-elif "# comment!" =~ r"\s*(\#.*)":
-  echo("comment: ", matches[1])
-else: 
-  echo("Bug!")
-

-if "Username".match("[A-Za-z]+"):

-  echo("Yes!")

-else:

-  echo("Bug!")

-

-#OUT key: keyAYes!