re2

Bindings to the re2 regular expression library


Keywords
mit, regex, Propose Tags, https://github.com/google/re2/, , Last Documentation, re2-0.3.tar.gz, browse, Package description, Package maintainers, JohnMillikin, blaze, edit package information , 0.1
License
MIT
Install
cabal install re2-0.1

Documentation

haskell-re2

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 https://github.com/google/re2.

$ 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