regex-do-1.3: PCRE wrapper

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

accepts regex String

Match_cl ByteString String Source

accepts regex ByteString

Match_cl ByteString ByteString Source

accepts regex ByteString

Match_cl Regex String Source

accepts Regex made with makeRegexOpts

Match_cl Regex ByteString Source

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