|t9      !"#$%&'()*+,-./012345678'non-portable (regex-base needs MPTC+FD) experimental>libraries@haskell.org, textregexlazy@personal.mightyreason.comNone AThe return code will be retOk when it is the Haskell wrapper and : not the underlying library generating the error message. A compiled regular expression. ReturnCode is an enumerated 9#, corresponding to the error codes  from  man 3 regex:    ( REG_BADBR!) invalid repetition count(s) in { }   ( REG_BADPAT) invalid regular expression   ( REG_BADRPT) ?, *, or + operand invalid   ( REG_ECOLLATE) invalid collating element   ( REG_ECTYPE) invalid character class   ( REG_EESCAPE) \" applied to unescapable character   ( REG_ESUBREG) invalid backreference number   ( REG_EBRACK ) brackets [ ] not balanced   ( REG_EPAREN) parentheses ( ) not balanced    ( REG_EBRACE ) braces { } not balanced  ! ( REG_ERANGE) invalid character range in [ ]  " ( REG_ESPACE) ran out of memory  : ( REG_NOMATCH)) The regexec() function failed to match  A bitmapped 9. containing options for execution of compiled I regular expressions. Option values (and their man 3 regexec names) are   < which is a complete zero value for all the flags. This is  the blankExecOpt value.  ; (REG_NOTBOL) can be set to prevent ^ from matching at the  start of the input.  ; (REG_NOTEOL) can be set to prevent $ from matching at the 3 end of the input (before the terminating NUL).  A bitmapped 9/ containing options for compilation of regular A expressions. Option values (and their man 3 regcomp names) are   5 which is a completely zero value for all the flags.  This is also the ; value.  9 (REG_EXTENDED) which can be set to use extended instead " of basic regular expressions.  This is set in the < value.  9 (REG_NEWLINE) turns on newline sensitivity: The dot (.)  and inverted set [^ ]- never match newline, and ^ and $ anchors do % match after and before newlines.  This is set in the < value.  6 (REG_ICASE) which can be set to match ignoring upper  and lower distinctions.  ; (REG_NOSUB) which turns off all information from matching # except whether a match exists.  RegOffset is typedef int regoff_t on Linux and ultimately typedef long long __int64_t% on Max OS X. So rather than saying , 2,147,483,647 is all the length you need, I'll take the larger: A 9,223,372,036,854,775,807 should be enough bytes for anyone, no D need for Integer. The alternative is to compile to different sizes % in a platform dependent manner with "type RegOffset = (#type regoff_t), which I do not want to do. There is also a special value  ::   which is B (-1) and as a starting index means that the subgroup capture was F unused. Otherwise the RegOffset indicates a character boundary that > is before the character at that index offset, with the first E character at index offset 0. So starting at 1 and ending at 2 means $ to take only the second character. +A completely zero value for all the flags.  This is also the ; value. +A completely zero value for all the flags.  This is also the = value. %AwrapMatch returns offsets for the begin and end of each capture. ? Unused captures have offsets of unusedRegOffset which is (-1) &<wrapMatchAll returns the offset and length of each capture. E Unused captures have an offset of unusedRegOffset which is (-1) and  length of 0. 7>? @ABCDEF G: !"HIJK#Flags (bitmapped) Flags (bitmapped) >The regular expression to compile (ASCII only, no null bytes) )Returns: the compiled regular expression $%L&'M&  !"#$%&'& #$%&'   !"3>? @ABCDEF G: !"HIJK#$%L&'M'non-portable (regex-base needs MPTC+FD) experimental>libraries@haskell.org, textregexlazy@personal.mightyreason.comNone*.Matches a regular expression against a string +.Matches a regular expression against a string (N)Flags (summed together) Flags (summed together) >The regular expression to compile (ASCII only, no null bytes) )Returns: the compiled regular expression *Compiled regular expression String to match against  Returns: O if the regex did not match the  string, or:   P (array of offset length pairs) +Compiled regular expression String to match against  Returns: O if the regex did not match the  string, or:   P (everything before match,  matched portion, ! everything after match,  subexpression matches) QRS ()*+()+*  (N)*+QRS'non-portable (regex-base needs MPTC+FD) experimental>libraries@haskell.org, textregexlazy@personal.mightyreason.comNone..Matches a regular expression against a string /.Matches a regular expression against a string ,T-Flags (summed together) Flags (summed together) >The regular expression to compile (ASCII only, no null bytes) )Returns: the compiled regular expression .Compiled regular expression (Seq Char) to match against  Returns: O if the regex did not match the  string, or:   P (array of offset length pairs) /Compiled regular expression (Seq Char) to match against  Returns: O if the regex did not match the  string, or:   P (everything before match,  matched portion, ! everything after match,  subexpression matches) UVWX ,-./,-/.   ,T-./UVWX'non-portable (regex-base needs MPTC+FD) experimental>libraries@haskell.org, textregexlazy@personal.mightyreason.comNone0Compiles a regular expression 1DMatches a regular expression against a buffer, returning the buffer + indicies of the match, and any submatches 0| Matches a regular expression against a string Y0Flags (summed together) Flags (summed together) "The regular expression to compile )Returns: the compiled regular expression 1Compiled regular expression String to match against  Returns: O if the regex did not match the  string, or:  Po an array of (offset,length) pairs where index 0 is whole match, and the rest are the captured subexpressions. 2Compiled regular expression String to match against 3Z[\]^ 01233012   Y0123Z[\]^'non-portable (regex-base needs MPTC+FD) experimental>libraries@haskell.org, textregexlazy@personal.mightyreason.comNone4Compiles a regular expression 5DMatches a regular expression against a buffer, returning the buffer + indicies of the match, and any submatches 0| Matches a regular expression against a string _`ab4Flags (summed together) Flags (summed together) "The regular expression to compile )Returns: the compiled regular expression 5Compiled regular expression String to match against  Returns: O if the regex did not match the  string, or:  Po an array of (offset,length) pairs where index 0 is whole match, and the rest are the captured subexpressions. 6Compiled regular expression String to match against 7cde 45677456   _`ab4567cde'non-portable (regex-base needs MPTC+FD) experimental>libraries@haskell.org, textregexlazy@personal.mightyreason.comNone8Dfghijklmnopqr<=;stuvwxyz{|}~ 888       !"#$%&'()*+,-./01./01/01./01.23456789: ;<=>?@ABCDEFGHI3JK3JLMNOIPQRSITUVWXYZIUVWX[\]^_`abcdefghijklmnopqrstuvwxyz{|}~regex-posix-0.95.2Text.Regex.Posix.StringText.Regex.Posix.WrapText.Regex.Posix.SequenceText.Regex.Posix.ByteString Text.Regex.Posix.ByteString.LazyText.Regex.Posixregex-base-0.93.2Text.Regex.Base.RegexLike MatchOffset MatchLength WrapErrorRegex ReturnCode ExecOption CompOption RegOffsetT RegOffset compBlank execBlankunusedRegOffset=~=~~ execNotBOL execNotEOL compExtendedcompIgnoreCase compNoSub compNewlineretBadbr retBadpat retBadrpt retEcollate retEctype retEescape retEsubreg retEbrack retEparen retEbrace retErange retEspace wrapCompilewrapTest wrapMatch wrapMatchAll wrapCount unusedOffsetcompileexecuteregexecgetVersion_Text_Regex_PosixbaseForeign.C.TypesCInt retNoMatch blankCompOptdefaultCompOpt blankExecOpt CRegMatchCRegex c_regerror c_regexec c_regcomp c_myregfreec_memsettryretOknullTest isNewlineisNull wrapErrordoMatch'$fRegexOptionsRegexCompOptionExecOptionunwrap Data.MaybeNothingJust$fRegexLikeRegex[]'$fRegexMakerRegexCompOptionExecOption[]$fRegexContextRegex[][]withSeq$fRegexLikeRegexSeq($fRegexMakerRegexCompOptionExecOptionSeq$fRegexContextRegexSeqSeqfi asCString$fRegexLikeRegexByteString/$fRegexMakerRegexCompOptionExecOptionByteString'$fRegexContextRegexByteStringByteStringfromLazytoLazyText.Regex.BasegetVersion_Text_Regex_Base MatchArray MatchTextmrSubs mrSubListmrAftermrMatchmrBeforeMR MatchResult getExecOpts setExecOptsdefaultExecOpt RegexOptionsmakeRegexOptsM makeRegexM makeRegexOpts makeRegex RegexMaker matchOnceText matchAllText matchTest matchCountmatchAll matchOnce RegexLikematchMmatch RegexContextextractemptyafterbeforeExtractgetAllSubmatches AllSubmatchesgetAllTextSubmatchesAllTextSubmatches getAllMatches AllMatchesgetAllTextMatchesAllTextMatches