regex-do

PCRE regex funs


Keywords
public-domain, regex, search, string, Propose Tags , Text.Regex.Do.Match.Latin, Text.Regex.Do.Match.Option, Text.Regex.Do.Match.Regex, Text.Regex.Do.Match.Utf8, Text.Regex.Do.Pad, Text.Regex.Do.Replace.Fast, Text.Regex.Do.Replace.Latin, Text.Regex.Do.Replace.Open, Text.Regex.Do.Replace.Template, Text.Regex.Do.Replace.Utf8, Text.Regex.Do.Split, Text.Regex.Do.Trim, Text.Regex.Do.Type.Convert, Text.Regex.Do.Type.Do, Text.Regex.Do.Type.Extract
License
Other
Install
cabal install regex-do-2.4

Documentation

regex-do

Convenience functions to format, search, replace (String | ByteString) with PCRE regex

example functions:

"Polly {0} a {1}" < ["got","cracker"]
"Polly got a cracker"

"овчинка {a} не {b}" < [("a","выделки"),("b","стоит")]
"овчинка выделки не стоит"


replace (Once "менее") "более" "менее менее"
"более менее"


"\n" / "a\nbc\nde"
["a", "bc", "de"]


trim "    aiy  \n  pdsodfg987   "
"aiy  \n  pdsodfg987"