Pattern is the type returned by the regular expression parser parseRegex.
This is consumed by the Text.Regex.TDFA.CorePattern module and the tender leaves
are nibbled by the Text.Regex.TDFA.TNFA module.
The DoPa field is the index of the component in the regex string r.
Constructors
PEmpty(), matches the empty string.PGroup (Maybe GroupIndex) PatternGroup
(r).Nothingindicates non-matching PGroup (never produced by parserparseRegex).POr [Pattern]Alternative
r|s(flattened by starTrans).PConcat [Pattern]Sequence
rs(flattened by starTrans).PQuest PatternZero or one repetitions
r?(eliminated by starTrans).PPlus PatternOne or more repetitions
r+(eliminated by starTrans).PStar Bool PatternZero or more repetitions
r*.True(default) means may accept the empty string on its first iteration.PBound Int (Maybe Int) PatternGiven number or repetitions
r{n}orr{n,m}(eliminated by starTrans).PCarat^matches beginning of input.PDollar$matches end of input.PDot.matches any character.PAnyBracket expression
[...].PAnyNotInverted bracket expression
[^...].PEscapeBackslashed character
c, may have special meaning.getDoPa :: DoPagetPatternChar :: Char
PCharSingle character, matches given character.
getDoPa :: DoPagetPatternChar :: Char
PNonCapture PatternTag for internal use, introduced by starTrans.
PNonEmpty PatternTag for internal use, introduced by starTrans.