regex-do-1.4: PCRE wrapper

Safe HaskellNone
LanguageHaskell2010

Text.Regex.Do.Pcre.Match

Description

Synopsis

Documentation

class Rx_ n h => Match n h where Source

see Text.Regex.Do.Pcre.Result to convert MatchArray to something useful

Minimal complete definition

Nothing

Instances

Match String String Source

accepts regex String

>>> matchTest (Pattern "^ab") (Body "abc")

True

Match String ByteString Source

accepts regex String

Match ByteString String Source

accepts regex ByteString

Match ByteString ByteString Source

accepts regex ByteString

Match Regex String Source

accepts Regex made with makeRegexOpts

Match Regex ByteString Source

accepts Regex made with makeRegexOpts

makeRegexOpts :: Opt_ n => [Comp] -> [Exec] -> Pattern n -> Regex Source

tweak Regex with options

type Rx_ n h = (Extract h, Regex_ n, RegexLike Regex h) Source