Safe Haskell | None |
---|---|
Language | Haskell2010 |
although sometimes funs in Ascii modules work with non-ascii text (as some examples show), for reliable results with Utf8 pattern or body, use Text.Regex.Do.Pcre.Utf8.Match
see also Text.Regex.Base.RegexLike and Text.Regex.Do.Pcre.Ascii.MatchHint
Documentation
class Match a b out where Source
precompiled Regex may be used as pattern too. see Text.Regex.Do.Pcre.Utf8.Match
See also Text.Regex.Do.Pcre.Ascii.MatchHint
to catch regex construction errors, precompile Regex
with makeRegexM
or makeRegexOptM
Rx_ a b => Match a b Bool Source | test
True |
Rx_ a b => Match a b [[PosLen]] Source | match all |
Rx_ a b => Match a b [PosLen] Source | match once
[(8,2)] |
Rx_ a b => Match a b [[b]] Source | match all
[["chilly"],["chilly"]] |
Rx_ a b => Match a b [b] Source | match once
["all"] |
:: Match a b out | |
=> a | pattern |
-> b | body |
-> out |
short version of match
: arg without newtypes
is borrowed from Text.Regex.PCRE.Wrap
extract :: Extract source => (Int, Int) -> source -> source
extract takes an offset and length and has a default
implementation of extract (off,len) source = before len (after
off source)
extract
is reexport from Text.Regex.Base.RegexLike