v8      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~                                   ! " # $ %&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~       !!!!!!!!!!"""""""##########$$$$$$ $ % % % %%%*Safe/contains a compiled RE and replacement templatethe REthe replacement templateNoneI2our line numbers are of the proper zero-based kind the first line in a file *extract a conventional 1-based line number )inject a conventional 1-based line number    NoneIa t is just the number of the capture, starting with 0 for the whole of the text matched, then in leftmost, outermosta  is just the text of the nameTthe dictionary for named captures stored in compiled regular expressions associates[CaptureID identifies captures, either by number (e.g., [cp|1|]) or name (e.g., [cp|foo|]). an empty  dictionary look up a  in the  dictionary   Safe!"09;<='Hthe matching of a single sub-expression against part of the source text) the whole text that was searched*the text that was matched+ythe number of characters preceding the match with -1 used if no text was captured by the RE (not even the empty string),1the number of chacter in the captured sub-string-(test if the capture has matched any text.$returns the text preceding the match/ returns the text after the match '()*+,-./0 '()*+,-./ '()*+,-./'()*+,-./0None!"09;<=3the result of matching a RE to a text once, listing the text that was matched and the named captures in the RE and all of the substrings matched, with the text captured by the whole RE; a complete failure to match will be represented with an empty array (with bounds (0,-1))5the whole source text6the RE's capture names7 @.n-1 captures, starting with the text matched by the whole RE8/Construct a Match that does not match anything.9an empty array of Capture:3tests whether the RE matched the source text at all;3tests whether the RE matched the source text at all<Kthe top-level capture if the source text matched the RE, Nothing otherwise=Ythe top-level capture and the sub captures if the text matched the RE, Nothing otherwise>an alternative for captureText?look up the text of the nth capture, 0 being the match of the whole RE against the source text, 1, the first bracketed sub-expression to be matched and so on@#an alternative for captureTextMaybeAlook up the text of the nth capture (0 being the match of the whole), returning Nothing if the Match doesn't contain the captureBan alternative for captureClook up the nth capture, 0 being the match of the whole RE against the source text, 1, the first bracketed sub-expression to be matched and so onD'an alternative for capture captureMaybeElook up the nth capture, 0 being the match of the whole RE against the source text, 1, the first bracketed sub-expression to be matched and so on, returning Nothing if there is no such capture, or if the capture failed to capture anything (being in a failed alternate)F=convert a regex-base native MatchText into a regex Match typeGthis instance hooks 3C into regex-base: regex consumers need not worry about any of this3456789:;<=>?@ABCDEFGH3456789:;<=>?@ABCDEF3456789:;<=>?@ABCDEF3456789:;<=>?@ABCDEFGH>9 B9 None!"09;<=Kithe result type to use when every match is needed, not just the first match of the RE against the sourceMthe source text being matchedNall 3 instances found, left to rightO3tests whether the RE matched the source text at allPcount the matchesQlist the MatchesR(extract the main capture from each matchSthis instance hooks KC into regex-base: regex consumers need not worry about any of this KLMNOPQRSTKLMNOPQRKLMNOPQRKLMNOPQRSTNone0W?used to throw an exception reporting an abuse of a quasi quoterY)in what context was the quasi quoter usedZ%how was the quasi quoter being abused[ha quasi quoter that can be used in no context (to be extended with the appropriate quasi quoter parser)WXYZ[\WXYZ[WXYZ\[WXYZ[\Safe^GConvert a string into a regular expression that will match that string_=returns True iff the charactr is an RE meta character ('[',  , '{', etc.)^_^_^_^_&Safe None<=?I`MacroID is just a wrapped String type with an IsString instancec4our macro tables are parameterised over the backend RE# type and and just associate each MacroID with an RE3 (which may in turn contain macros to be expanded)d(a number of types can be used to encode f/, each of which is made a member of this classe convert the o type into an REOptions r c eflthe general options for an RE are dependent on which back end is being used and are parameterised over the RE! type for the back end, and its  CompOption and  ExecOptionc types (the compile-time and execution time options, respectively); each back end will define an  REOptions_ type that fills out these three type parameters with the apropriate types (see, for example, Text.RE.ZeInternals.TDFA)h!the available TestBench RE macrosi!the back end compile-time optionsj#the back end execution-time optionskpthe default API uses these simple, universal RE options, which get auto-converted into the apropriate back-end fl@case-sensitive with ^ and $ matching the start and end of a linem?case-insensitive with ^ and $ matsh the start and end of a linenHcase-sensitive with ^ and $ matching the start and end of the input textoJcase-insensitive with ^ and $ matching the start and end of the input textp#a macro table containing no entriesqMacroID is used with  HM.HashMap to build macro lookup tablesr4we need to use this in the quasi quoters to specify SimpleREOptions selected by the quasi quoter`abcdefghijklmnopqr`abcdefghijklmnopklmnofghijdec`abp`abcdefghijklmnopqr None!"9:;"}ua selction of the Replace methods can be encapsulated with ReplaceMethods for the higher-order replacement functionsFReplace provides the missing needed to replace the matched text in a Replace a => Match a.length function for ainject String into aproject a onto a Stringinject into Textproject Text onto asplit into linesconcatenate a list of linesappend a newline*apply a substitution function to a CaptureKconvert a template containing $0, $1, etc., in the first argument, into a phiJ replacement function for use with replaceAllCaptures and replaceCapturesthe  RELocationg information passed into the substitution function specifies which sub-expression is being substitutedxthe zero-based, i-th string to be matched, when matching all strings, zero when only the first string is being matched0, when matching the top-level string matched by the whole RE, 1 for the top-most, left-most redex captured by bracketed sub-REs, etc. REContext= specifies which contexts the substitutions should be appliedZsubstitutions should be applied to the top-level only, the text that matched the whole REOsubstitutions should only be applied to the text captured by bracketed sub-REskthe substitution function should be applied to all captures, the top level and the sub-expression capturesRTrue iff the location references a complete match (i.e., not a bracketed capture)Kreplace all with a template, $0 for whole text, $1 for first capture, etc.substitutes using a function that takes the full Match context and returns the same replacement text as the _phi_phi context.vreplaceAllCaptures_ is like like replaceAllCaptures but takes the Replace methods through the ReplaceMethods argumentUreplaceAllCapturesM is just a monadically generalised version of replaceAllCaptures_substitutes using a function that takes the full Match context and returns the same replacement text as the _phi_phi context.kreplaceCaptures_ is like replaceCaptures but takes the Replace methods through the ReplaceMethods argumentOreplaceCapturesM is just a monadically generalised version of replaceCaptures_expand all of the @{..} macros in the RE in the argument String according to the Macros argument, preprocessing the RE String according to the Mode argument (used internally)Gexpand the @{..} macos in the argument string using the given functionTlist all of the CaptureID references in the replace template in the second argument4parse a Match generated by acan_template, returning 3Left "$") iff the capture reference is an escaped $ (i.e., $$@)lscan a replacement template, returning a Match for each capture reference in the template (like $1, ${foo})EreplaceMethods encapsulates ReplaceMethods a from a Replace a contextGparse the replacement template in second argument, substititing the capture references with corresponding captures from the Match in the third argument (the result of a single match of the RE against the input text to be matched); Nothing is returned if the inputs are not well formed (currently all inputs are well formed)0}~$}~$}~}~ 'None!}~!}~ None!"Iwe are only interested in the open parentheses used for grouping and/or capturing; if neither grouping or capturing then there is no initial '(' or '(?:', just the suffic text following text optional ( or (?: a '(' that is not safe to modifyis this a grouping groupis this a capturing groupLname of the Haskell parser function for parsing the text matched by a macroa RE that should work for POSIX and PCRE with open brackets ('(') represented as follows: ( mere symbol (?: used for grouping only, not for captures (}: used for captures only, not for grouping (]: used for captures and grouping ( do not modify$list of failures on a validation runIdescribes a macro, giving the text of the RE and a si=ummary descriptionthe REsome sample matchessome sample non-matchesvalidation test resultsWA, the parser functionsummary commentoeach macro can reference others, the whole environment being required for each macro, so we use a Lazy HashMapPdo we need the captures in the RE or whould they be stripped out where possibleinclude all capturesremove captures where possibleGwhat kind of back end will be compiling the RE, and its match function test RegexType for TDFA/PCREness test RegexType for TDFA/PCREness>construct a macro table suitable for use with the RE compilers9test that a MacroEnv is passing all of its built-in tests'dump a MacroEnv into the docs directory)format a macros table as a markdown table(generate a plain text summary of a macro0list the source REs for each macro in plain text/list the source of a single macro in plain textO !"#$%&'()*+,-./0123456789:;<=>*`ab*`ab1 !"#$%&'()*+,-./0123456789:;<=> None$?@ABCDEFG22?@ABCDEFG None!"I +an enumeration of all of the prelude macros6generate the standard prelude Macros used to parse REs6format the standard prelude macros in a markdown table0generate a textual summary of the prelude macrosZgenerate a plain text table giving the RE for each macro with all macros expanded (to NF)<generate plain text giving theexpanded RE for a single macro generate the  for the standard prelude macros generate the  for a given naming the macrosH)all prelude macros are prefixed with thisIa digit string macroJsee  'https://mathiasbynens.be/demo/url-regex (based on @stephenhay URL)9     KHLMNOIPQRSTUVWXYZ[\]^_J`ab-     -     $     KHLMNOIPQRSTUVWXYZ[\]^_J`abNone!"<= %the %m class allows polymorhic tools to be written that will work with a variety of regex back ends and text types&finding the first match'finding all matches(5compiling an RE, failing if the RE is not well formed)comiling an RE, specifying the k* compiling a U template from the RE text and the template Text, failing if they are not well formed+ compiling a  template specifing the k for the RE,Iincorporate an escaped string into a compiled RE with the default options-Dincorporate an escaped string into a compiled RE with the specified k.&extract the text of the RE from the RE/,searching and replacing the first occurrence0(searching and replaceing all occurrences %&'()*+,-./0%&(.')*+,-/0%&'()*+,-./0% &'()*+,-./0((C) 2016-17 Chris DornanBSD3 (see the LICENSE file)+Chris Dornan <chris.dornan@irisconnect.com>RFCportableNone 35:;KNMOPQ KMNMNOPQ355:;None!"21oa LineEdit is the most general action thar can be performed on a line and is the only means of deleting a line5<each Edit action specifies how the match should be processed9an 9 script will, for each line in the file, either perform the action selected by the first RE in the list, or perform all of the actions on line, arranged as a pipeline< apply an 5 script to a single line=apply a single edit action to a line, the function in the first argument being used to add a new line onto the end of the line where appropriate; the function returns Nothing- if no edit is to be performed on the line,  Just mempty to delete the line>apply a 1 to a line, using the function in the first argument to append a new line to the result; Nothing should be returned if no edit is to be performed,  Just mempty to delete the line123456789:;<=>cd" 35:;KMNOPQ123458679:;<=>9:;56781234<=> 123456789:;<=>cdNone!": A7specifies whether to return the linss matched or missedDa GrepScript lists RE-action associations, with the first RE to match a line selecting the action to be executed on each line in the fileEJ returns a E0 for each line in the file, listing all of the K for that lineGthe  for this lineHall the K of the RE on this lineIoperates a bit like classic grep printing out the lines matchedJ returns a EI for each line in the file enumerating all of the matches for that line.K!given a list of lines, apply the D to each line of the fileL&generate a grep report from a list of EMgiven a velocity9 flag filter out either the lines matched or not matched ABCDEFGHIJKLM' 35:;KMNOPQ%&(.')*+,-ABCDEFGHIJKLMIEFGHJDKLABCM%&'()*+,-. ABCDEFGHIJKLMNoneRCa simple regex-based scanner interpretter for prototyping scannersSa higher order version of R parameterised over the  matchOnce functionRS35:;KMNOPQ%&(.')*+,-RS RS%&'()*+,-.RSNone!":Tread a file, apply an 9} script to each line it and write the file out again; "-" is used to indicate standard input standard output as appropriateU apply an 9) script to each line of the argument textTUef* 35:;KMNOPQ%&(.')*+,-123458679:;<=>TU TU%&'()*+,-.9:;56781234<=> TUef)None1 35:;KMNOPQ%&(.')*+,-123458679:;<=>DIJKMRSTU'TUIJDKMRS%&'()*+,-.9:;56781234<=> *None 35:;KMNOPQ}~%&(.')*+,-/0123458679:;<=>DIJKMRSTUNone0ATVza convenience function used by the API modules to insert capture names extracted from the parsed RE into the (*=~) resultWza convenience function used by the API modules to insert capture names extracted from the parsed RE into the (?=~) resultXYa hairy dynamically-typed function used with the legacy (=~) and (=~~) to see if it can/should add the capture names extracted from the RE into the polymorphic result of the operator (it does for any Match or Matches type, provided it is parameterised over a recognised type). The test suite is all over this one, testing all of these cases.VWXVWXVWXVWXNone!"5g-options for the general Token formatter belowh!Posix, PCRE or indeterminate REs?iremove captures where possiblej"include the captures in the outputY-our RE scanner returns a list of these tokens`2quasi quoter for CaptureID ([cp|0|],[cp|y|], etc.)aextract the CaptureNames from an RE or return an error diagnostic if the RE is not well formed; also returs the total number of captures in the REb!check that a token is well formedkBanalyse a token stream, returning the number of captures and the c(scan a RE string into a list of RE Tokend format [Token] into an RE stringl1the default configuration for the Token formattereOa configuration that will preserve the parsed regular expression in the outputfDthe general Token formatter, generating REs according to the optionsgmhijYZ[\]^_`abkcndlefgY_Z[\]^`abcdefg`aeYZ[\]^_bdfgc gmhijYZ[\]^_`abkcndlefgNone!"l warapper on mA that will generate an error if any compilation errors are foundmcompile a SearchReplace template generating errors if the RE or the template are not well formed -- all capture references being checkedncompile  SearcgReplaceA from two strings containing the RE and the replacement templatelmnolmnlmnlmnoNone !"9:;<=$o)and the REOptions for this back end (see Text.RE.REOptions for details)pFthe RE type for this back end representing a well-formed, compiled REqsome functions in the Text.RE.TestBench2 need the back end to be passed dynamically as a  parameters: use q fpr this backendr extract the o from the REs&extract the RE source string from the REt extract the  from the REuextract the back end compiled p type from the REv the default ow the default o but with no RE macros definedxconvert a universal SimpleReOptions into the o used by this back endy compile a q into a pL with the default options, generating an error if the RE is not well formedz compile a q into a p using the given SimpleREOptions3, generating an error if the RE is not well formed{ compile a q into a p using the given SimpleREOptions3, generating an error if the RE is not well formed|compile a SearchReplace template generating errors if the RE or the template are not well formed, all capture references being checked}compile a SearchReplace template, with simple options, generating errors if the RE or the template are not well formed, all capture references being checked~compile a SearchReplace template, with general options, generating errors if the RE or the template are not well formed, all capture references being checkedconvert a string into a RE that matches that string, and apply it to an argument continuation function to make up the RE string to be compiled; e.g., to compile a RE that will only match the string: /maybe undefined id . escape (("^"++) . (++"$")) a variant of  where the k are specified a variant of  that allows an d RE option to be specifiedthe standard table of c= used to compile REs (which can be extended or replace: see Text.RE.TestBench) the standard  for this back end (see Text.RE.TestBench)lthe macros in the standard environment that are failing their tests (checked by the test suite to be empty).a table the standard macros in markdown formatTa summary of the macros in the standard environment for this back end in plain textla listing of the RE text for each macro in the standard environment with all macros expanded to normal form?the prolude source of a given macro in the standard environmentthe  [re| ... |] and [ed| ... /// ... |] quasi quotersthe  [re| ... |] and [ed| ... /// ... |] quasi quotersthe  [re| ... |] and [ed| ... /// ... |] quasi quotersthe  [re| ... |] and [ed| ... /// ... |] quasi quotersthe  [re| ... |] and [ed| ... /// ... |] quasi quotersthe  [re| ... |] and [ed| ... /// ... |] quasi quotersthe  [re| ... |] and [ed| ... /// ... |] quasi quotersthe  [re| ... |] and [ed| ... /// ... |] quasi quotersthe  [re| ... |] and [ed| ... /// ... |] quasi quotersthe  [re| ... |] and [ed| ... /// ... |] quasi quoters7oprstuvqrstuvwxyz{|}~wxyz{|}~&^`opqrstuvwxyz{|}~&pqrstuovwyz{|}~^x`2oprstuvqrstuvwxyz{|}~wxyz{|}~None:5construct a quasi quoter from a casting function and Just sroA if the options are known, otherwise a function take takes the k and constructs the  templateNone the [ed| ... /// ... |] quasi quotersthe [ed| ... /// ... |] quasi quotersthe [ed| ... /// ... |] quasi quotersthe [ed| ... /// ... |] quasi quotersthe [ed| ... /// ... |] quasi quotersthe [ed| ... /// ... |] quasi quotersthe [ed| ... /// ... |] quasi quotersthe [ed| ... /// ... |] quasi quotersthe [ed| ... /// ... |] quasi quotersthe [ed| ... /// ... |] quasi quoters    None    None9:;<=Wfind all the matches in the argument text; e.g., to count the number of naturals in s: !countMatches $ s *=~ [re|[0-9]+|]ifind the first match in the argument text; e.g., to test if there is a natural number in the input text: matched $ s ?=~ [re|[0-9]+|]search and replace all matches in the argument text; e.g., this section will convert every YYYY-MM-DD format date in its argument text into a DD/MM/YYYY date: N(*=~/ [ed|${y}([0-9]{4})-0*${m}([0-9]{2})-0*${d}([0-9]{2})///${d}/${m}/${y}|])search and replace the first occurrence only (if any) in the input text e.g., to prefix the first string of four hex digits in the imput text, if any, with 0x:#@(?=~/ [ed|[0-9A-Fa-f]{4}///0x$0|]))the regex-base polymorphic match operator2the regex-base monadic, polymorphic match operatorE35:;KNMOPQ^klmno`opqrstuvwxyz{|}~KMNMNOPQ355:;psklmnoyz^None    None9:;<=Wfind all the matches in the argument text; e.g., to count the number of naturals in s: !countMatches $ s *=~ [re|[0-9]+|]ifind the first match in the argument text; e.g., to test if there is a natural number in the input text: matched $ s ?=~ [re|[0-9]+|]search and replace all matches in the argument text; e.g., this section will convert every YYYY-MM-DD format date in its argument text into a DD/MM/YYYY date: N(*=~/ [ed|${y}([0-9]{4})-0*${m}([0-9]{2})-0*${d}([0-9]{2})///${d}/${m}/${y}|])search and replace the first occurrence only (if any) in the input text e.g., to prefix the first string of four hex digits in the imput text, if any, with 0x:#@(?=~/ [ed|[0-9A-Fa-f]{4}///0x$0|]))the regex-base polymorphic match operator2the regex-base monadic, polymorphic match operatorE35:;KNMOPQ^klmno`opqrstuvwxyz{|}~KMNMNOPQ355:;psklmnoyz^None    None9:;<=Wfind all the matches in the argument text; e.g., to count the number of naturals in s: !countMatches $ s *=~ [re|[0-9]+|]ifind the first match in the argument text; e.g., to test if there is a natural number in the input text: matched $ s ?=~ [re|[0-9]+|]search and replace all matches in the argument text; e.g., this section will convert every YYYY-MM-DD format date in its argument text into a DD/MM/YYYY date: N(*=~/ [ed|${y}([0-9]{4})-0*${m}([0-9]{2})-0*${d}([0-9]{2})///${d}/${m}/${y}|])search and replace the first occurrence only (if any) in the input text e.g., to prefix the first string of four hex digits in the imput text, if any, with 0x:#@(?=~/ [ed|[0-9A-Fa-f]{4}///0x$0|]))the regex-base polymorphic match operator2the regex-base monadic, polymorphic match operatorE35:;KNMOPQ^klmno`opqrstuvwxyz{|}~KMNMNOPQ355:;psklmnoyz^None     None9:;<=Wfind all the matches in the argument text; e.g., to count the number of naturals in s: !countMatches $ s *=~ [re|[0-9]+|]ifind the first match in the argument text; e.g., to test if there is a natural number in the input text: matched $ s ?=~ [re|[0-9]+|]search and replace all matches in the argument text; e.g., this section will convert every YYYY-MM-DD format date in its argument text into a DD/MM/YYYY date: N(*=~/ [ed|${y}([0-9]{4})-0*${m}([0-9]{2})-0*${d}([0-9]{2})///${d}/${m}/${y}|])search and replace the first occurrence only (if any) in the input text e.g., to prefix the first string of four hex digits in the imput text, if any, with 0x:#@(?=~/ [ed|[0-9A-Fa-f]{4}///0x$0|]))the regex-base polymorphic match operator2the regex-base monadic, polymorphic match operatorE35:;KNMOPQ^klmno`opqrstuvwxyz{|}~KMNMNOPQ355:;psklmnoyz^!None    "None9:;<=Wfind all the matches in the argument text; e.g., to count the number of naturals in s: !countMatches $ s *=~ [re|[0-9]+|]ifind the first match in the argument text; e.g., to test if there is a natural number in the input text: matched $ s ?=~ [re|[0-9]+|]search and replace all matches in the argument text; e.g., this section will convert every YYYY-MM-DD format date in its argument text into a DD/MM/YYYY date: N(*=~/ [ed|${y}([0-9]{4})-0*${m}([0-9]{2})-0*${d}([0-9]{2})///${d}/${m}/${y}|])search and replace the first occurrence only (if any) in the input text e.g., to prefix the first string of four hex digits in the imput text, if any, with 0x:#@(?=~/ [ed|[0-9A-Fa-f]{4}///0x$0|]))the regex-base polymorphic match operator2the regex-base monadic, polymorphic match operatorE35:;KNMOPQ^klmno`opqrstuvwxyz{|}~KMNMNOPQ355:;psklmnoyz^#None    $None9:;<=Wfind all the matches in the argument text; e.g., to count the number of naturals in s: !countMatches $ s *=~ [re|[0-9]+|]ifind the first match in the argument text; e.g., to test if there is a natural number in the input text: matched $ s ?=~ [re|[0-9]+|]search and replace all matches in the argument text; e.g., this section will convert every YYYY-MM-DD format date in its argument text into a DD/MM/YYYY date: N(*=~/ [ed|${y}([0-9]{4})-0*${m}([0-9]{2})-0*${d}([0-9]{2})///${d}/${m}/${y}|])search and replace the first occurrence only (if any) in the input text e.g., to prefix the first string of four hex digits in the imput text, if any, with 0x:#@(?=~/ [ed|[0-9A-Fa-f]{4}///0x$0|]))the regex-base polymorphic match operator2the regex-base monadic, polymorphic match operator E35:;KNMOPQ^klmno`opqrstuvwxyz{|}~KMNMNOPQ355:;psklmnoyz^ %None: Wfind all the matches in the argument text; e.g., to count the number of naturals in s: !countMatches $ s *=~ [re|[0-9]+|] ifind the first match in the argument text; e.g., to test if there is a natural number in the input text: matched $ s ?=~ [re|[0-9]+|] search and replace all matches in the argument text; e.g., this section will convert every YYYY-MM-DD format date in its argument text into a DD/MM/YYYY date: N(*=~/ [ed|${y}([0-9]{4})-0*${m}([0-9]{2})-0*${d}([0-9]{2})///${d}/${m}/${y}|]) ,search and replace the first occurrence only)the regex-base polymorphic match operator2the regex-base monadic, polymorphic match operator    E35:;KNMOPQ^klmno`opqrstuvwxyz{|}~        KMNMNOPQ355:;psklmnoyz^    ++,-./01234567889::;<=>?@ABCDEFGHIJKLMNOOPQRSTUVWXYZZ[\]^_`abcdefghijklmnopqqrstuvwxyz{||}~                                                                    ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ ABCDEFGHIJKLMNOPQRSTNUVWXYZ[\]^_`aabcdefghijklmnopqrstuvwxyz{|}~       !!!!!!!!!!"""""""##########$$$$$$$%%%%%%                          K                                                        !"#$%&'()*+,-./0123456789:;:;:;:;!:!;#:#;<%regex-0.11.1.0-LwsCSCc3QUDITJIRtWIs7D'Text.RE.ZeInternals.Types.SearchReplace Text.RE.ZeInternals.Types.LineNo#Text.RE.ZeInternals.Types.CaptureID!Text.RE.ZeInternals.Types.CaptureText.RE.ZeInternals.Types.Match!Text.RE.ZeInternals.Types.MatchesText.RE.ZeInternals.QQ"Text.RE.ZeInternals.EscapeREStringText.RE.REOptionsText.RE.ZeInternals.ReplaceText.RE.ZeInternals.TestBenchText.RE.TestBench!Text.RE.ZeInternals.PreludeMacrosText.RE.IsRegexText.RE.Tools.EditText.RE.Tools.GrepText.RE.Tools.LexText.RE.Tools.Sed#Text.RE.ZeInternals.AddCaptureNames!Text.RE.ZeInternals.NamedCaptures!Text.RE.ZeInternals.SearchReplaceText.RE.ZeInternals.TDFA-Text.RE.ZeInternals.SearchReplace.TDFAEdPrime&Text.RE.ZeInternals.SearchReplace.TDFA1Text.RE.ZeInternals.SearchReplace.TDFA.ByteStringText.RE.TDFA.ByteString6Text.RE.ZeInternals.SearchReplace.TDFA.ByteString.LazyText.RE.TDFA.ByteString.Lazy/Text.RE.ZeInternals.SearchReplace.TDFA.SequenceText.RE.TDFA.Sequence-Text.RE.ZeInternals.SearchReplace.TDFA.StringText.RE.TDFA.String+Text.RE.ZeInternals.SearchReplace.TDFA.TextText.RE.TDFA.Text0Text.RE.ZeInternals.SearchReplace.TDFA.Text.LazyText.RE.TDFA.Text.Lazy Text.RE.TDFAText.RE.ZeInternalsText.RE.ReplaceText.RE Text.RE.Tools Text.RE.Summa SearchReplace getSearch getTemplate$fFunctorSearchReplace$fShowSearchReplaceLineNoZeroBasedLineNogetZeroBasedLineNo firstLine getLineNolineNo $fShowLineNo $fEnumLineNoCaptureOrdinalgetCaptureOrdinal CaptureNamegetCaptureName CaptureNames CaptureIDIsCaptureOrdinal IsCaptureNamenoCaptureNames findCaptureID$fHashableCaptureName$fShowCaptureName$fOrdCaptureName$fEqCaptureName$fShowCaptureOrdinal$fOrdCaptureOrdinal$fEqCaptureOrdinal$fEnumCaptureOrdinal$fIxCaptureOrdinal$fNumCaptureOrdinal$fShowCaptureID$fOrdCaptureID $fEqCaptureIDCapture captureSource capturedText captureOffset captureLength hasCaptured capturePrefix captureSuffix$fFunctorCapture $fShowCapture $fEqCaptureMatch matchSource captureNames matchArraynoMatchemptyMatchArraymatched matchedText matchCapture matchCaptures!$$ captureText!$$?captureTextMaybe!$capture!$? captureMaybeconvertMatchText$fRegexContextregexsourceMatch$fFunctorMatch $fShowMatch $fEqMatchMatches matchesSource allMatches anyMatches countMatchesmatches mainCaptures $fRegexContextregexsourceMatches$fFunctorMatches $fShowMatches $fEqMatches QQFailure _qqf_context_qqf_componentqq0$fExceptionQQFailure$fShowQQFailureescapeREString isMetaCharMacroID getMacroIDMacrosIsOption makeREOptions REOptions_ REOptions optionsMacs optionsComp optionsExecSimpleREOptionsMultilineSensitiveMultilineInsensitiveBlockSensitiveBlockInsensitive emptyMacros$fHashableMacroID$fLiftSimpleREOptions$fBoundedSimpleREOptions$fEnumSimpleREOptions$fEqSimpleREOptions$fOrdSimpleREOptions$fShowSimpleREOptions$fIsStringMacroID $fOrdMacroID $fEqMacroID $fShowMacroID$fShowREOptions_ReplaceMethods methodLength methodSubstReplacelengthRpackRunpackRtextifyR detextifyRlinesRunlinesRappendNewlineRsubstRparseTemplateR RELocation locationMatchlocationCapture REContextTOPSUBALL isTopLocation replaceAllreplaceAllCapturesreplaceAllCaptures_replaceAllCapturesMreplacereplaceCapturesreplaceCaptures_replaceCapturesM expandMacros expandMacros'templateCapturesreplaceMethods $fReplaceText$fReplaceText0 $fReplaceSeq$fReplaceByteString$fReplaceByteString0 $fReplace[]$fShowREContext$fShowRELocation FunctionID _FunctionID RegexSource _RegexSource TestResult _TestResultMacroDescriptor macroSource macroSamplesmacroCounterSamplesmacroTestResults macroParsermacroDescriptionMacroEnv WithCaptures InclCaptures ExclCaptures RegexTypeisTDFAisPCREmkTDFAmkPCREpresentRegexTypemkMacros testMacroEnv badMacrosrunTests runTests'dumpMacroTableformatMacroTableformatMacroSummaryformatMacroSourcesformatMacroSourcetestMacroDescriptors mdRegexSource$fShowRegexType$fEqWithCaptures$fOrdWithCaptures$fShowWithCaptures$fIsStringTestResult$fShowTestResult$fIsStringRegexSource$fShowRegexSource$fIsStringFunctionID$fShowFunctionID$fShowMacroDescriptor $fShowREToken$fIxCol $fBoundedCol $fEnumCol$fOrdCol$fEqCol $fShowColSeverityEmergAlertCritErrWarningNoticeInfoDebug IPV4Address parseIntegerparseHex parseDouble parseStringparseSimpleString parseDateparseSlashesDateparseTimeOfDay parseTimeZone parseDateTimeparseDateTime8601parseDateTimeCLFparseShortMonthshortMonthArrayparseIPv4Address parseSeverityseverityKeywords$fBoundedSeverity$fEnumSeverity $fOrdSeverity $fEqSeverity$fShowSeverity PreludeMacroPM_natPM_hexPM_intPM_frac PM_stringPM_string_simplePM_idPM_id'PM_id_PM_datePM_date_slashesPM_time PM_timezone PM_datetimePM_datetime_8601PM_datetime_clf PM_shortmonthPM_address_ipv4PM_email_simplePM_urlPM_syslog_severity preludeMacrospreludeMacroTablepreludeMacroSummarypreludeMacroSourcespreludeMacroSourcepreludeMacroEnvpreludeMacroDescriptorpresentPreludeMacro$fBoundedPreludeMacro$fEnumPreludeMacro$fOrdPreludeMacro$fEqPreludeMacro$fShowPreludeMacroIsRegex matchOnce matchMany makeRegex makeRegexWithmakeSearchReplacemakeSearchReplaceWith makeEscapedmakeEscapedWith regexSourcesearchReplaceAllsearchReplaceFirstLineEditNoEdit ReplaceWithDeleteEditTemplateFunctionEditsSelectPipe applyEdits applyEdit applyLineEdit$fFunctorLineEdit$fShowLineEdit Verbosity LinesMatchedLinesNotMatched GrepScriptLine getLineNumbergetLineMatchesgrep grepLines grepScriptreport linesMatched $fShowLine$fShowVerbosity $fEqVerbosity$fOrdVerbosityalexalex'sedsed'addCaptureNamesToMatchesaddCaptureNamesToMatchaddCaptureNamesTokenECapPGrpPCapBraBSOthercpextractNamedCaptures validTokenscan formatTokensidFormatTokenREOptions formatTokens' formatTokens0 $fShowToken$fGenericToken $fEqToken$fShowFormatTokenREOptionsunsafeCompileSearchReplace_compileSearchReplace_compileSearchAndReplace_RE regexType reOptionsreSourcereCaptureNamesreRegexdefaultREOptionsnoPreludeREOptionsunpackSimpleREOptions compileRegexcompileRegexWithcompileRegexWithOptionscompileSearchReplacecompileSearchReplaceWith!compileSearchReplaceWithREOptionsescape escapeWithescapeWithOptionsprelude preludeEnvpreludeTestsFailing preludeTablepreludeSummarypreludeSources preludeSourcerereMSreMIreBSreBIreMultilineSensitivereMultilineInsensitivereBlockSensitivereBlockInsensitivere_"$fIsOption()RECompOptionExecOption*$fIsOptionREOptions_RECompOptionExecOption*$fIsOptionExecOptionRECompOptionExecOption*$fIsOptionCompOptionRECompOptionExecOption'$fIsOptionHashMapRECompOptionExecOption/$fIsOptionSimpleREOptionsRECompOptionExecOptioned'ededMSedMIedBSedBIedMultilineSensitiveedMultilineInsensitiveedBlockSensitiveedBlockInsensitiveed_*=~?=~*=~/?=~/=~=~~$fIsRegexREByteString$fIsRegexRESeq $fIsRegexRE[]$fIsRegexRETextlookupCaptureIDbaseGHC.Num*parse_template_capture scan_templateparseTemplateR'lift_phifixpoint$=~REToken _ret_prefix _ret_fixed _ret_grouping_ret_capturingColC_nameC_capsC_regex C_examplesC_anti_examplesC_failsC_parser C_commentTableRowTDFAPCRETestBenchMatcher present_colmacro_table_hdrmacro_table_rowmacro_attribute format_table field_widthwrap_rowwidths format_rowfieldselljust min_captures format_tokens delete_ketscan_retest' test_neg'test_diagnosticdate_templatestime_templatestimezone_templatesdate_time_8601_templatesdate_time_templates parse_timeshort_month_hm severity_hmwords_byprelude_prefix decimal_macro url_macroprelude_macro_envprelude_macro_id natural_macronatural_hex_macro integer_macro string_macrostring_simple_macroid_macro id'_macro id__macro date_macrodate_slashes_macro time_macrotimezone_macrodatetime_macrodatetime_8601_macrodatetime_clf_macroshortmonth_macroaddress_ipv4_macrossyslog_severity_macroemail_simple_macro run_testsbracketedRegexSourcefixselect_edit_scriptspipe_edit_scripts read_file write_fileFormatTokenREOptions_fto_regex_type _fto_min_caps_fto_incl_caps analyseTokensdefFormatTokenREOptions parse_capture'regex-tdfa-1.2.2-JDBpHysOzmCJBjQ8NG5dyEText.Regex.TDFA.CommonRegexGHC.BaseString _re_options _re_source _re_cnames _re_regexre'unsafeCompileRegexSimpleunsafeCompileRegexunsafeCompileRegex_ compileRegex' compileRegex_def_comp_optiondef_exec_optionunsafe_compile_sr_simpleunsafe_compile_srcastsr_castfn_cast