regex-do-3.0: PCRE wrapper
Text.Regex.Do.Type.Extract
Contents
Synopsis
class Extract a => Extract' a where Source #
see String, ByteString instances for implementation examples
see Text.Regex.Base.RegexLike for Extract detail
Extract
Minimal complete definition
concat', len'
Methods
concat' :: [a] -> a Source #
len' :: a -> Int Source #
Instances
concat' :: [String] -> String Source #
len' :: String -> Int Source #
concat' :: [ByteString] -> ByteString Source #
len' :: ByteString -> Int Source #
concat' :: [Text] -> Text Source #
len' :: Text -> Int Source #
prefix :: Extract a => PosLen -> a -> a Source #
suffix :: Extract a => PosLen -> a -> a Source #
before :: Int -> Text -> Text #
after :: Int -> Text -> Text #
empty :: Text #
extract :: (Int, Int) -> Text -> Text #