aboutsummaryrefslogtreecommitdiff
path: root/test.icl
diff options
context:
space:
mode:
Diffstat (limited to 'test.icl')
-rw-r--r--test.icl4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.icl b/test.icl
index a89ffe4..6f6d306 100644
--- a/test.icl
+++ b/test.icl
@@ -4,7 +4,7 @@ import StdEnv
import Regex
import Data.Maybe
-Start = map (match rgx) ["hello", "abc"]
+Start = map (fromJust o (match rgx zero)) ["hello", "abc", "aXz"]
where
- (Just rgx) = toRegex 0 "^a[[:alnum:]]"
+ (Just rgx) = toRegex REG_EXTENDED "^a[a-z]*$"