Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class Match_ctr n h => Match_cl n h where
- makeRegexOpts :: Match_opt n => [Comp] -> [Exec] -> Needle n -> Regex
- type Match_ctr n h = (Extract h, Needle_ n, RegexLike Regex h)
- type Match_opt n = RegexMaker Regex CompOption ExecOption n
- class Needle_ r where
Documentation
class Match_ctr n h => Match_cl n h where Source
see Regexdo.Pcre.Result
for funs converting MatchArray
to something useful
match
returns the first occurrence - if any
Nothing
match :: Needle n -> Haystack h -> Maybe MatchArray Source
matchTest :: Needle n -> Haystack h -> Bool Source
matchAll :: Needle n -> Haystack h -> [MatchArray] Source
Match_cl String String Source | this instance accepts regex
True |
Match_cl String ByteString Source | this instance accepts regex |
Match_cl ByteString String Source | this instance accepts regex |
Match_cl ByteString ByteString Source | this instance accepts regex |
Match_cl Regex String Source | this instance accepts |
Match_cl Regex ByteString Source | this instance accepts |
makeRegexOpts :: Match_opt n => [Comp] -> [Exec] -> Needle n -> Regex Source
tweak Regex with options
type Match_opt n = RegexMaker Regex CompOption ExecOption n Source