regex-do-1.5: PCRE wrapper

Safe HaskellNone
LanguageHaskell2010

Text.Regex.Do.Pcre.Match

Description

Synopsis

Documentation

class ExplicitMatch n h => Match n h out where Source

match covers all ExplicitMatch funs

compiler looks up the appropriate function depending on the result type

Methods

match :: Pattern n -> Body h -> out Source

class Rx_ n h => ExplicitMatch n h where Source

Minimal complete definition

Nothing

Methods

matchOnce Source

Arguments

:: Pattern n 
-> Body h 
-> [h]

matched content

matchOnce' Source

matchTest :: Pattern n -> Body h -> Bool Source

matchAll Source

Arguments

:: Pattern n 
-> Body h 
-> [[h]]

matched content

matchAll' Source

Arguments

:: Pattern n 
-> Body h 
-> [MatchArray]

see Text.Regex.Do.Pcre.Result

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