Regex
A compiled regular expression.
A compiled regular expression.
regex-applicative is a Haskell library for parsing using regular expressions. Parsers can be built using Applicative interface.
Version 0.2
Interface API for regex-posix,pcre,parsec,tdfa,dfa
Version 0.93.2
One module layer over regex-posix to replace Text.Regex
Version 0.95.1
The lazy DFA engine, based on CTKLight, for regex-base
Version 0.91
From a regex, generate all possible strings it can match
Version 0.3.2
A better performance, lazy, powerful replacement of Text.Regex and JRegex
Version 0.90
The PCRE backend to accompany regex-base, see www.pcre.org
Version 0.94.4
The PCRE backend to accompany regex-base, see www.pcre.org
Version 0.94.2.1.7.7
Regex algorithm implementation using partial derivatives
Version 0.1.1
The posix regex backend for regex-base
Version 0.95.2
Most platforms have a buggy system regex library and this probes the bugs by using the regex-posix package, run with "regex-posix-unittest"
Version 1.1
A new all Haskell "tagged" DFA regex engine, inspired by libtre
Version 1.1.8
Apply regex-posix-unittest tests to regex-tdfa
Version 1.1
This combines regex-tdfa with utf8-string to allow searching over UTF8 encoded lazy bytestrings.
Version 1.0
The TRE backend to accompany regex-base
Version 0.91
This library supports full W3C XML Schema regular expressions inclusive all Unicode character sets and blocks. The complete grammar can be found under http://www.w3.org/TR/xmlschema11-2/#regexs. It is implemented by the technique of derivations of regular expressions. The W3C syntax is extended to support not only union of regular sets, but also intersection, set difference, exor. Matching of subexpressions is also supported. The library can be used for constricting lightweight scanners and tokenizers. It is a standalone library, no external regex libraries are used.
Version 0.1.5
Provides a POSIX, extended regex-engine, specialised from the underlying polymorphic package regexdot, to merely process the traditional character-lists.
Version 0.9.0.9
RegexContext is the polymorphic interface to do matching. Since target is polymorphic you may need to suply the type explicitly in contexts
The monadic matchM version uses fail to report when the regex has no match in source. Two examples:
Here the contest Bool is inferred:
> [ c | let notVowel = makeRegex "[^aeiou]" :: Regex, c <- ['a'..'z'], match notVowel [c] ]
>
> "bcdfghjklmnpqrstvwxyz"
Here the context '[String]' must be supplied:
> let notVowel = (makeRegex "[^aeiou]" :: Regex )
> in do { c <- ['a'..'z'] ; matchM notVowel [c] } :: [String]
>
> ["b","c","d","f","g","h","j","k","l","m","n","p","q","r","s","t","v","w","x","y","z"]
Show more results