regex-do-1.1: PCRE regex funs

Safe HaskellSafe
LanguageHaskell2010

Regexdo.Pcre.Result

Synopsis

Documentation

value :: (Functor f, Extract a) => Haystack a -> f MatchArray -> f [a] Source

all matches

oneMatchArray :: Extract a => Haystack a -> MatchArray -> [a] Source

extracts all values in a MatchArray (matched group)

extract :: Extract source => (Int, Int) -> source -> source

extract takes an offset and length and has a default implementation of extract (off,len) source = before len (after off source)