regex-do-3.2: PCRE wrapper

Safe HaskellNone
LanguageHaskell2010

Text.Regex.Do.Replace.Fast

Description

simple (no regex) fast replace on ByteStrings

All occurrences are replaced. There is no Once option

see replace for detail

Synopsis

Documentation

replace Source #

Arguments

:: ByteString

Pattern

-> ByteString

Replacement

-> ByteString

Body

-> ByteString 
>>> replace "\n" "," "a\nbc\nde"

"a,bc,de"