regex-0.6.0.0: Toolkit for regex-base

Safe HaskellNone
LanguageHaskell2010

Text.RE.CaptureID

Synopsis

Documentation

data CaptureID Source

CaptureID identifies captures, either by number (e.g., [cp|1|]) or name (e.g., [cp|foo|]).

type CaptureNames = HashMap CaptureName CaptureOrdinal Source

the dictionary for named captures stored in compiled regular expressions associates

newtype CaptureName Source

a CaptureName is just the text of the name

Constructors

CaptureName 

Fields

getCaptureName :: Text
 

newtype CaptureOrdinal Source

a CaptureOrdinal is just the number of the capture, starting with 0 for the whole of the text matched, then in leftmost, outermost

Constructors

CaptureOrdinal