regex-do-3.0: PCRE wrapper

Safe HaskellSafe
LanguageHaskell2010

Text.Regex.Do.Type.Extract

Contents

Synopsis

Documentation

class Extract a => Extract' a where Source #

see String, ByteString instances for implementation examples

see Text.Regex.Base.RegexLike for Extract detail

Minimal complete definition

concat', len'

Methods

concat' :: [a] -> a Source #

len' :: a -> Int Source #

prefix :: Extract a => PosLen -> a -> a Source #

suffix :: Extract a => PosLen -> a -> a Source #

Orphan instances

Extract Text Source # 

Methods

before :: Int -> Text -> Text #

after :: Int -> Text -> Text #

empty :: Text #

extract :: (Int, Int) -> Text -> Text #