
Hi all, I've written a simple regexp library for POSIX EREs, with a similar interface to Text.Regex. Benefits over Text.Regex include: Works in nhc98 Laziness: RE> match "^a" ('a':error "Foo") Just [] Could easily be altered for regexps on lists of other datatypes Missing features: Text.Regex's matchRegexAll (should be simple to add) [[=a=]] and [[.ch.]] (don't plan to add these) I haven't looked at cabalising it or anything yet. It can be downloaded from http://urchin.earth.li/~ian/re-0.0.1.tar.gz or darcs get http://urchin.earth.li/darcs/ian/regexp Thanks Ian

Cool! Looking at HTests, I guess that the list of substrings returned corresponds to the brackets in the regexp? Is the darcs subdirectory just there for version control? #g -- At 03:58 26/10/04 +0100, Ian Lynagh wrote:
Hi all,
I've written a simple regexp library for POSIX EREs, with a similar interface to Text.Regex.
Benefits over Text.Regex include:
Works in nhc98
Laziness: RE> match "^a" ('a':error "Foo") Just []
Could easily be altered for regexps on lists of other datatypes
Missing features:
Text.Regex's matchRegexAll (should be simple to add)
[[=a=]] and [[.ch.]] (don't plan to add these)
I haven't looked at cabalising it or anything yet. It can be downloaded from http://urchin.earth.li/~ian/re-0.0.1.tar.gz or darcs get http://urchin.earth.li/darcs/ian/regexp
Thanks Ian
_______________________________________________ Libraries mailing list Libraries@haskell.org http://www.haskell.org/mailman/listinfo/libraries
------------ Graham Klyne For email: http://www.ninebynine.org/#Contact

On Tue, Oct 26, 2004 at 08:39:37AM +0100, Graham Klyne wrote:
Looking at HTests, I guess that the list of substrings returned corresponds to the brackets in the regexp?
Yup.
Is the darcs subdirectory just there for version control?
You mean at http://urchin.earth.li/darcs/ian/regexp ? That's intended to be given to darcs, not a web browser, although the way it works means you can see a copy of the source there. The _darcs directory is where the version control stuff lives, yes (and in general _darcs/current would be a better place to look for a consistent set of files, although it doesn't matter in this case as I don't work in that repository). Incidentally, http://urchin.earth.li/~ian/re-0.0.2.tar.gz fixes a couple of silly bugs. Thanks Ian
participants (2)
-
Graham Klyne
-
Ian Lynagh