regex-do-1.1: PCRE regex funs

Safe HaskellNone
LanguageHaskell2010

Regexdo.Pcre.Match

Synopsis

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

Minimal complete definition

Nothing

Instances

Match_cl String String Source

this instance accepts regex String

>>> matchTest (Needle "^ab") (Haystack "abc")

True

Match_cl String ByteString Source

this instance accepts regex String

Match_cl ByteString String Source

this instance accepts regex ByteString

Match_cl ByteString ByteString Source

this instance accepts regex ByteString

Match_cl Regex String Source

this instance accepts Regex made with makeRegexOpts

Match_cl Regex ByteString Source

this instance accepts Regex made with makeRegexOpts

makeRegexOpts :: Match_opt n => [Comp] -> [Exec] -> Needle n -> Regex Source

tweak Regex with options

type Match_ctr n h = (Extract h, Needle_ n, RegexLike Regex h) Source

_ctr: constraint