re2

Bindings to the re2 regular expression library

https://github.com/rblaze/haskell-re2#readme

Version on this page:0.2
LTS Haskell 22.14:0.3
Stackage Nightly 2023-12-26:0.3
Latest on Hackage:0.3

See all snapshots re2 appears in

MIT licensed by John Millikin
Maintained by Andrey Sverdlichenko
This version can be pinned in stack with:re2-0.2@sha256:6f6ce3edc2f10af20c28b7ee9c0b1828734c6b983cdedec8af779f77c25b0a23,1566

Module documentation for 0.2

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