؆      !"#$%&'()*+,-./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.)^_^_^_^_ None0AT`za convenience function used by the API modules to insert capture names extracted from the parsed RE into the (*=~) resultaza convenience function used by the API modules to insert capture names extracted from the parsed RE into the (?=~) resultbYa 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.`ab`ab`ab`ab&Safe None<=?IcMacroID is just a wrapped String type with an IsString instancef4our 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)g(a number of types can be used to encode i/, each of which is made a member of this classh convert the o type into an REOptions r c eilthe 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)k!the available TestBench RE macrosl!the back end compile-time optionsm#the back end execution-time optionsnpthe default API uses these simple, universal RE options, which get auto-converted into the apropriate back-end io@case-sensitive with ^ and $ matching the start and end of a linep?case-insensitive with ^ and $ matsh the start and end of a lineqHcase-sensitive with ^ and $ matching the start and end of the input textrJcase-insensitive with ^ and $ matching the start and end of the input texts#a macro table containing no entriestMacroID is used with  HM.HashMap to build macro lookup tablesu4we need to use this in the quasi quoters to specify SimpleREOptions selected by the quasi quotercdefghijklmnopqrstucdefghijklmnopqrsnopqrijklmghfcdescdefghijklmnopqrstu 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$$ 'NoneR'()*+,-./3456789:;<=>?@ABCDEFKLMNOPQRRKLMNOPQR3456789:;<=>?@ABCDEF'()*+,-./ 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 possible)what flavour of regex are we dealing with 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)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 textN !"#$%&'()*+,-./0123456789:;<=)cde)cde0 !"#$%&'()*+,-./0123456789:;<= None$>?@ABCDEF66>?@ABCDEFNone!"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 macrosG)all prelude macros are prefixed with thisHa digit string macroIsee  'https://mathiasbynens.be/demo/url-regex (based on @stephenhay URL)9     J !GKLMNHOPQRSTUVWXYZ[\]^I_`a-      !-     ! $     J !GKLMNHOPQRSTUVWXYZ[\]^I_`aNone!"<= '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 n, compiling a U template from the RE text and the template Text, failing if they are not well formed- compiling a  template specifing the n 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 n0&extract the text of the RE from the RE1search and replace all matches in the argument text; e.g., this function will convert every YYYY-MM-DD format date in its argument text into a DD/MM/YYYY date: XsearchReplaceAll [ed|${y}([0-9]{4})-0*${m}([0-9]{2})-0*${d}([0-9]{2})///${d}/${m}/${y}|]2search 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: .searchReplaceFirst [ed|[0-9A-Fa-f]{4}///0x$0|] '()*+,-./012'(*0)+,-./12'()*+,-./012' ()*+,-./012None3Ca simple regex-based scanner interpretter for prototyping scanners4a higher order version of 3 parameterised over the  matchOnce function34343434None!"5b-options for the general Token formatter belowc!Posix, PCRE or indeterminate REs?dremove captures where possiblee"include the captures in the output5-our RE scanner returns a list of these tokens<2quasi quoter for CaptureID ([cp|0|],[cp|y|], etc.)=extract 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 RE>!check that a token is well formedfBanalyse a token stream, returning the number of captures and the ?(scan a RE string into a list of RE Token@ format [Token] into an RE stringg1the default configuration for the Token formatterAOa configuration that will preserve the parsed regular expression in the outputBDthe general Token formatter, generating REs according to the optionsbhcde56789:;<=>f?i@gABC5;6789:<=>?@ABC<=A56789:;>@BC? bhcde56789:;<=>f?i@gABCNone!"H warapper on IA that will generate an error if any compilation errors are foundIcompile a SearchReplace template generating errors if the RE or the template are not well formed -- all capture references being checkedJcompile  SearcgReplaceA from two strings containing the RE and the replacement templateHIJjHIJHIJHIJjNone !"9:;<=$K)and the REOptions for this back end (see Text.RE.REOptions for details)LFthe RE type for this back end representing a well-formed, compiled REMsome functions in the Text.RE.TestBench2 need the back end to be passed dynamically as a  parameters: use M fpr this backendN extract the K from the REO&extract the RE source string from the REP extract the  from the REQextract the back end compiled k type from the RER the default KS the default K but with no RE macros definedTconvert a universal SimpleReOptions into the K used by this back endU compile a l into a LL with the default options, generating an error if the RE is not well formedV compile a l into a L using the given SimpleREOptions3, generating an error if the RE is not well formedW compile a l into a L using the given SimpleREOptions3, generating an error if the RE is not well formedXcompile a SearchReplace template generating errors if the RE or the template are not well formed, all capture references being checkedYcompile a SearchReplace template, with simple options, generating errors if the RE or the template are not well formed, all capture references being checkedZcompile a SearchReplace template, with general options, generating errors if the RE or the template are not well formed, all capture references being checked[convert 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 n are specified] a variant of \ that allows an g RE option to be specified^the standard table of f= 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.a table the standard macros in markdown formatbTa summary of the macros in the standard environment for this back end in plain textcla listing of the RE text for each macro in the standard environment with all macros expanded to normal formd?the prolude source of a given macro in the standard environmentethe  [re| ... |] and [ed| ... /// ... |] quasi quotersfthe  [re| ... |] and [ed| ... /// ... |] quasi quotersgthe  [re| ... |] and [ed| ... /// ... |] quasi quotershthe  [re| ... |] and [ed| ... /// ... |] quasi quotersithe  [re| ... |] and [ed| ... /// ... |] quasi quotersjthe  [re| ... |] and [ed| ... /// ... |] quasi quoterskthe  [re| ... |] and [ed| ... /// ... |] quasi quoterslthe  [re| ... |] and [ed| ... /// ... |] quasi quotersmthe  [re| ... |] and [ed| ... /// ... |] quasi quotersnthe  [re| ... |] and [ed| ... /// ... |] quasi quoters7KLmnopqMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnrstuvwxyopqrst&^<KLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmn&LMNOPQKRSUVWXYZ[\]^^_`abcdTefghijklmn<2KLmnopqMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnrstuvwxyopqrstNone:u5construct a quasi quoter from a casting function and Just sroA if the options are known, otherwise a function take takes the n and constructs the  templateuz{uuuz{None vthe [ed| ... /// ... |] quasi quoterswthe [ed| ... /// ... |] quasi quotersxthe [ed| ... /// ... |] quasi quotersythe [ed| ... /// ... |] quasi quoterszthe [ed| ... /// ... |] quasi quoters{the [ed| ... /// ... |] quasi quoters|the [ed| ... /// ... |] quasi quoters}the [ed| ... /// ... |] quasi quoters~the [ed| ... /// ... |] quasi quotersthe [ed| ... /// ... |] quasi quoters vwxyz{|}~| vwxyz{|}~ vwxyz{|}~ vwxyz{|}~|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 operatorS35:;KNMOPQ^nopqr'(*0)+,-./<KLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmn/KMNMNOPQ355:;LOnopqrUVXY[\^'()*+,-./0None    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 operatorS35:;KNMOPQ^nopqr'(*0)+,-./<KLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmn/KMNMNOPQ355:;LOnopqrUVXY[\^'()*+,-./0None    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 operatorS35:;KNMOPQ^nopqr'(*0)+,-./<KLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmn/KMNMNOPQ355:;LOnopqrUVXY[\^'()*+,-./0None    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 operatorS35:;KNMOPQ^nopqr'(*0)+,-./<KLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmn/KMNMNOPQ355:;LOnopqrUVXY[\^'()*+,-./0None    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 operatorS35:;KNMOPQ^nopqr'(*0)+,-./<KLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmn/KMNMNOPQ355:;LOnopqrUVXY[\^'()*+,-./0 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 operatorS35:;KNMOPQ^nopqr'(*0)+,-./<KLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmn/KMNMNOPQ355:;LOnopqrUVXY[\^'()*+,-./0"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 operatorS35:;KNMOPQ^nopqr'(*0)+,-./<KLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnvwxyz{|}~/KMNMNOPQ355:;LOnopqrUVXY[\^'()*+,-./0((C) 2016-17 Chris DornanBSD3 (see the LICENSE file)+Chris Dornan <chris.dornan@irisconnect.com>RFCportableNone35:;KNMOPQ'(*0)+,-./12KMNMNOPQ355:;'()*+,-./012#None!"2oa LineEdit is the most general action thar can be performed on a line and is the only means of deleting a line<each Edit action specifies how the match should be processedan  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  script to a single lineapply 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 lineapply a  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 line. 35:;KMNOPQ'(*0)+,-./12 $None!": 7specifies whether to return the linss matched or misseda GrepScript lists RE-action associations, with the first RE to match a line selecting the action to be executed on each line in the file returns a 0 for each line in the file, listing all of the K for that linethe  for this lineall the K of the RE on this lineoperates a bit like classic grep printing out the lines matched returns a I for each line in the file enumerating all of the matches for that line.!given a list of lines, apply the  to each line of the file&generate a grep report from a list of given a velocity9 flag filter out either the lines matched or not matched ) 35:;KMNOPQ'(*0)+,-./12'()*+,-./0 )None35:;KMNOPQ'(*0)+,-./1234 34'()*+,-./0%None!": read a file, apply an } script to each line it and write the file out again; "-" is used to indicate standard input standard output as appropriate apply an ) script to each line of the argument text , 35:;KMNOPQ'(*0)+,-./12   '()*+,-./0  *None3 35:;KMNOPQ'(*0)+,-./1234 ' 34'()*+,-./0 +None '()*+,-./3456789:;<=>?@ABCDEFKLMNOPQRcdefghijklmnopqrs'(*0)+,-./1234 ,,-./01234567899:;;<=>?@ABCDEFGHIJKLMNOPPQRSTUVWXYZ[[\]^_`abcdefghijklmnopqrrstuvwxyz{|}}~                                                                   !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~          !!!!!!!""""""################$$$$$$$$$$$$$$$$$%%                          N                                  !"#$%&i'()*+,-./0123456767676767 6 7#8#9%:%;<%regex-0.12.0.0-EdUVJHXVa9BFlDsGJ8eHK6'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.EscapeREString#Text.RE.ZeInternals.AddCaptureNamesText.RE.REOptionsText.RE.ZeInternals.ReplaceText.RE.ZeInternals.TestBenchText.RE.TestBench!Text.RE.ZeInternals.PreludeMacros!Text.RE.ZeInternals.Types.IsRegexText.RE.ZeInternals.Lex!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.Tools.EditText.RE.Tools.GrepText.RE.Tools.SedText.RE.ZeInternalsText.RE.ReplaceText.REText.RE.Tools.Lex 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 isMetaCharaddCaptureNamesToMatchesaddCaptureNamesToMatchaddCaptureNamesMacroID 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'formatMacroTableformatMacroSummaryformatMacroSourcesformatMacroSourcetestMacroDescriptors 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 regexSourcesearchReplaceAllsearchReplaceFirstalexalex'TokenECapPGrpPCapBraBSOthercpextractNamedCaptures 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[]$fIsRegexRETextLineEditNoEdit ReplaceWithDeleteEditTemplateFunctionEditsSelectPipe applyEdits applyEdit applyLineEdit$fFunctorLineEdit$fShowLineEdit Verbosity LinesMatchedLinesNotMatched GrepScriptLine getLineNumbergetLineMatchesgrep grepLines grepScriptreport linesMatched $fShowLine$fShowVerbosity $fEqVerbosity$fOrdVerbositysedsed'lookupCaptureIDbaseGHC.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_testsbracketedRegexSourcefixFormatTokenREOptions_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_castselect_edit_scriptspipe_edit_scripts read_file write_file