Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data SearchReplace re s = SearchReplace {
- getSearch :: !re
- getTemplate :: !s
- searchReplaceFirst :: IsRegex re s => SearchReplace re s -> s -> s
- searchReplaceAll :: IsRegex re s => SearchReplace re s -> s -> s
Serach and Replace
data SearchReplace re s Source #
contains a compiled RE and replacement template
SearchReplace | |
|
Functor (SearchReplace re) Source # | |
(Show s, Show re) => Show (SearchReplace re s) Source # | |
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