Safe Haskell | None |
---|---|
Language | Haskell2010 |
simple (no regex) fast replace on ByteString
s
All occurrences are replaced. There is no Once option
see replace
for detail
- replace :: ByteString -> ByteString -> ByteString -> ByteString
Documentation
:: ByteString | Pattern |
-> ByteString | Replacement |
-> ByteString | Body |
-> ByteString |
>>>
replace "\n" "," "a\nbc\nde"
"a,bc,de"