aboutsummaryrefslogtreecommitdiff
path: root/test.icl
diff options
context:
space:
mode:
authorCamil Staps2016-06-23 09:29:58 +0200
committerCamil Staps2016-06-23 09:41:16 +0200
commit5daf973fa5ba6fdbf2b4a65f4aed6513e337be8e (patch)
tree67c8ff9506da2ff689d654ec18805fddfcacffa7 /test.icl
parentSwitch to posix; minimal working version (diff)
exec flagsHEADmaster
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]*$"