Safe Haskell | None |
---|---|
Language | Haskell2010 |
see Text.Regex.Base.RegexLike and Text.Regex.Do.Pcre.Utf8.MatchHint
similar to Text.Regex.Do.Pcre.Ascii.Match
Pattern
& Body
are wrapped in Utf8_
encoding tag.
This tag adds clarity, prevents calling Ascii functions by mistake.
toByteString'
converts String to Utf8_
ByteString
Documentation
class Match enc a b out where Source
- enc:
Utf8_
- a:
String
,ByteString
,Regex
- b:
String
,ByteString
out:
- [
String
], [[String
]] - [
ByteString
], [[ByteString
]] Bool
- [
PosLen
], [[PosLen
]]
- [
Rx_ a b => Match Utf8_ a b Bool Source | test. Note that a and b may be different types e.g.
True |
Rx_ a b => Match Utf8_ a b [[PosLen]] Source | match all |
Rx_ a b => Match Utf8_ a b [PosLen] Source | match once
[(13,2)] |
Rx_ a b => Match Utf8_ a b [[b]] Source | match all
[["well"],["well"]] |
Rx_ a b => Match Utf8_ a b [b] Source | match once precompiled regex as pattern
|
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