ByteString version of Text.Regex?

Kathleen Fisher kathleen.fisher at gmail.com
Fri Mar 4 09:03:13 CET 2011


Thanks!  I got this to work.

It would be really helpful if the documentation in Hackage pointed to the examples in RWH (or had similar examples inline).  It's not helpful that the documentation on hackage for the context information is out of date (or at least, it says it is out of date).  The hapless user (ie, me) is reduced to reading the source code to figure out what different kinds of things the regex matching operators can return.

Kathleen



On Mar 3, 2011, at 3:52 PM, Ivan Lazar Miljenovic wrote:

> 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