ByteString version of Text.Regex?

Ivan Lazar Miljenovic ivan.miljenovic at gmail.com
Fri Mar 4 00:52:47 CET 2011


On 4 March 2011 10:43, Don Stewart <dons at galois.com> wrote:
> The regex-* packages are polymorphic in the string type they accept, so
> it should be possible to use them with bytestrings.
>
> E.g.
>
>    * http://hackage.haskell.org/package/regex-pcre
>    * http://hackage.haskell.org/package/regex-posix
>    * http://hackage.haskell.org/package/regex-tdfa
>
> (you can choose which regex automata you like)

And have a look at the RWH chapter on regexes to get an idea of how to
use them: http://book.realworldhaskell.org/read/efficient-file-processing-regular-expressions-and-file-name-matching.html

-- 
Ivan Lazar Miljenovic
Ivan.Miljenovic at gmail.com
IvanMiljenovic.wordpress.com



More information about the Libraries mailing list