regex-do-1.7: PCRE wrapper

Safe HaskellNone
LanguageHaskell2010

Text.Regex.Do.TypeDo

Synopsis

Documentation

data ReplaceAcc b Source

Constructors

ReplaceAcc 

Fields

acc :: b

content with some replacements made

pos_adj :: Int

position adjustment: group replacement length may differ from replaced text length

data Pattern a Source

Needle

Constructors

Pattern a 

data Body b Source

Haystack

Constructors

Body b 

Instances

data Replacement r Source

Constructors

Replacement r 

type PosLen = (MatchOffset, MatchLength) Source

Offset, Length

data ReplaceCase Source

Constructors

Once

may be omitted

All

if both Once and All are passed, All prevails

Utf8 
Multiline 

Instances

type Rx_ a b = (Regex_ a, Extract b, RegexLike Regex b) Source