regex-0.10.0.2: Toolkit for regex-base

Safe HaskellNone
LanguageHaskell2010

Text.RE.SearchReplace

Contents

Synopsis

Serach and Replace

data SearchReplace re s Source #

contains a compiled RE and replacement template

Constructors

SearchReplace 

Fields

Instances

Functor (SearchReplace re) Source # 

Methods

fmap :: (a -> b) -> SearchReplace re a -> SearchReplace re b #

(<$) :: a -> SearchReplace re b -> SearchReplace re a #

(Show s, Show re) => Show (SearchReplace re s) Source # 

Methods

showsPrec :: Int -> SearchReplace re s -> ShowS #

show :: SearchReplace re s -> String #

showList :: [SearchReplace re s] -> ShowS #

searchReplaceFirst :: IsRegex re s => SearchReplace re s -> s -> s Source #

searching and replaceing all occurrences

searchReplaceAll :: IsRegex re s => SearchReplace re s -> s -> s Source #

searching and replacing the first occurrence