Bindings to the re2 regular expression library https://john-millikin.com/software/haskell-re2/
|Latest on Hackage:||0.1|
This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.
re2 is a regular expression library offering predictable run-time and memory consumption. This package is a binding to re2.
Supported expression syntax is documented at http://code.google.com/p/re2/wiki/Syntax.
$ ghci -XOverloadedStrings ghci> import Regex.RE2 ghci> find "\\w+" "hello world" Just (Match [Just "hello"]) ghci> find "\\w+$" "hello world" Just (Match [Just "world"]) ghci> find "^\\w+$" "hello world" Nothing