@hackage re20.3
Bindings to the re2 regular expression library
Categories
License
MIT
Maintainer
Andrey Sverdlichenko <blaze@ruddy.ru>
Links
Versions
Installation
Dependencies (3)
- base >=4.7 && <5.0
- bytestring >=0.10.2
- vector Show all…
Dependents (1)
@hackage/acme-everything
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