úÎGB4      !"#$%&'()*+,-./0123MITNone ^A successful match of the pattern against some input. Capturing groups may be retrieved with , or -.rOptions controlling how to compile a regular expression. The fields in this value may be set using record syntax: .compileNoCase :: B.ByteString -> Either Error # compileNoCase = ( (& {   = False }) Only checked in posix modeOnly checked in posix modeOnly checked in posix mode#HA pattern is a compiled regular expression plus its compilation options.#Patterns can be created by calling ' explicitly: ;import Data.ByteString.Char8 (pack) p :: Pattern p = case 'f (pack "^hello world$") of Right ok -> ok Left err -> error ("compilation error: " ++ % err) Or by using the 4 instance: Limport Data.String (fromString) p :: Pattern p = fromString "^hello world$"Or by using the OverloadedStrings language extension: D{-# LANGUAGE OverloadedStrings #-} p :: Pattern p = "^hello world$"& ÿàdefaultOptions = Options { optionEncoding = EncodingUtf8 , optionPosixSyntax = False , optionLongestMatch = False , optionMaxMemory = 8388608 -- 8 << 20 , optionLiteral = False , optionNeverNewline = False , optionDotNewline = False , optionNeverCapture = False , optionCaseSensitive = True , optionPerlClasses = False , optionWordBoundary = False , optionOneLine = False } '  compile = ( &(lCompile a regular expression with the given options. If compilation fails, the error can be inspected with % and $.Use b to select whether the input bytes should be interpreted as UTF-8 or Latin1. The default is UTF8.).The regular expression originally provided to (.*#The options originally provided to (.+`The capturing groups defined within the pattern. Groups are listed from left to right, and are Nothing if the group is unnamed. Jghci> patternGroups "(\\d+)|(?P<word>\\w+)" fromList [Nothing,Just "word"],-The capturing group with the given index, or Nothing) if the group was not set in this match.The entire match is group 0.-8All of the groups in the pattern, with each group being NothingM if it was not set in this match. Groups are returned in the same order as +.The entire match is group 0..lThe most general matching function. Attempt to match the pattern to the input within the given constraints.\If the number of match groups to populate is 0, matching can be performed more efficiently./7Attempt to find the pattern somewhere within the input.0„Replace the first occurance of the pattern with the given replacement template. If the template contains backslash escapes such as \1J, the capture group with the given index will be inserted in their place.Returns the new bytes, and True if a replacement occured.1€Replace every occurance of the pattern with the given replacement template. If the template contains backslash escapes such as \1J, the capture group with the given index will be inserted in their place.9Returns the new bytes, and how many replacements occured.2–Attempt to find the pattern somewhere within the input, and extract it using the given template. If the template contains backslash escapes such as \1J, the capture group with the given index will be inserted in their place.Returns Nothing+ if the pattern was not found in the input.3_Escapes bytes such that the output is a regular expression which will exactly match the input.`56 7 8 !"9#:;<=>?Inputstartpos, endposanchor&num captures, -1 to capture all groupsCaptures How many groups were captured@ABCDEFGHIJKLMNOPQRST$%&U'()*+V,-.Start position End position!How many match groups to populate/W0InputReplacement template1InputReplacement template2InputExtraction template3XYZ[\]^_`4  !"#$%&'()*+,-./0123?#'()*+ & "! %$,-./0123=5 6 7 ! 8"9#:;<=>?@ABCDEFGHIJKLMNOPQRST$%&U'()*+V,-./W0123XYZ[\]^_`a      !"#$%&'()*+,-./0123456789:$%;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`are2-0.1 Regex.RE2Anchor AnchorBoth AnchorStartMatchOptionsoptionEncodingoptionPosixSyntaxoptionLongestMatchoptionMaxMemory optionLiteraloptionNeverNewlineoptionNeverCaptureoptionCaseSensitiveoptionPerlClassesoptionWordBoundary optionOneLineEncodingEncodingLatin1 EncodingUtf8 ErrorCodeErrorPatternTooLargeErrorBadNamedCapture ErrorBadUTF8ErrorBadPerlOp ErrorRepeatOpErrorRepeatSizeErrorRepeatArgumentErrorTrailingBackslashErrorMissingParenErrorMissingBracketErrorBadCharRangeErrorBadCharClassErrorBadEscape ErrorInternalErrorPattern errorCode errorMessagedefaultOptionscompile compileWith patternInputpatternOptions patternGroups matchGroup matchGroupsmatchfindreplace replaceAllextract quoteMetabase Data.StringIsStringoptionDotNewline ErrorUnknown c_quote_meta c_extractc_global_replace c_replacec_matchc_pattern_groupsc_freec_pattern_input c_error_codec_errorc_delete_patternc_compile_patternc_setopt_one_linec_setopt_word_boundaryc_setopt_perl_classesc_setopt_case_sensitivec_setopt_never_capturec_setopt_dot_nlc_setopt_never_nlc_setopt_literalc_setopt_max_memc_setopt_longest_matchc_setopt_posix_syntaxc_setopt_encodingc_free_optionsc_alloc_options withOptionspeekPatternGroups peekCaptures c_INT_MAX hs_INT_MAXunsafeUseAsCStringIntLenunsafeUseAsCStringSizeLenunsafePackMallocCStringSizeLen $fShowMatch$fIsStringPattern $fEqPattern $fShowPattern