regex-0.11.1.0: Toolkit for regex-base

Safe HaskellNone
LanguageHaskell2010

Text.RE.ZeInternals.NamedCaptures

Synopsis

Documentation

cp :: QuasiQuoter Source #

quasi quoter for CaptureID ([cp|0|],[cp|y|], etc.)

extractNamedCaptures :: String -> Either String ((Int, CaptureNames), String) Source #

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

idFormatTokenREOptions :: FormatTokenREOptions Source #

a configuration that will preserve the parsed regular expression in the output

data Token Source #

our RE scanner returns a list of these tokens

Constructors

ECap (Maybe String) 
PGrp 
PCap 
Bra 
BS Char 
Other Char 

Instances

validToken :: Token -> Bool Source #

check that a token is well formed

formatTokens :: [Token] -> String Source #

format [Token] into an RE string

formatTokens' :: FormatTokenREOptions -> [Token] -> String Source #

the general Token formatter, generating REs according to the options

scan :: String -> [Token] Source #

scan a RE string into a list of RE Token