| Copyright | (c) 2019-2020 Vaclav Svejcar |
|---|---|
| License | BSD-3-Clause |
| Maintainer | vaclav.svejcar@gmail.com |
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | None |
| Language | Haskell2010 |
Headroom.Regex
Description
Provides wrappers mainly around functions from Text.Regex.PCRE.Light that more suits the needs of this application.
Documentation
Arguments
| :: Text | regular expression to be compiled |
| -> Regex | compiled regular expression |
Same as compile, but takes Text on input and enables utf8 option
by default.
Joins list of patterns into single regex string. If the input list is
empty, Nothing is returned.
>>>joinPatterns ["^foo", "^bar"]Just "^foo|^bar"