Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
class Match n h out where Source
match
covers all
compiler looks up the appropriate function depending on the result type
(=~
) is borrowed from Text.Regex.Posix.Wrap,
is a short version of match
. For those who put pattern & body in the right places.
Rx_ n h => Match n h Bool Source | test
True |
Rx_ n h => Match n h [[PosLen]] Source | match all |
Rx_ n h => Match n h [PosLen] Source | match once
[(13,2)] Utf8 |
Rx_ n h => Match n h [[h]] Source | match all
[["well"],["well"]] |
Rx_ n h => Match n h [h] Source | match once
["all"] |
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