aboutsummaryrefslogtreecommitdiff
path: root/test.icl
diff options
context:
space:
mode:
Diffstat (limited to 'test.icl')
-rw-r--r--test.icl6
1 files changed, 3 insertions, 3 deletions
diff --git a/test.icl b/test.icl
index 5346aca..a89ffe4 100644
--- a/test.icl
+++ b/test.icl
@@ -2,9 +2,9 @@ module test
import StdEnv
import Regex
-import StdMaybe
+import Data.Maybe
-Start = (match rgx "123a123", toString rgx)
+Start = map (match rgx) ["hello", "abc"]
where
- (Just rgx) = toRegex Regex_CASELESS "[a-z]\\d+"
+ (Just rgx) = toRegex 0 "^a[[:alnum:]]"