- type Pattern = ByteString
- sedSubRegex :: ByteString -> ByteString -> ByteString -> Int -> (ByteString, Bool)
Documentation
type Pattern = ByteStringSource
:: ByteString | Search pattern |
-> ByteString | Input string |
-> ByteString | Replacement text |
-> Int | Occurrence |
-> (ByteString, Bool) |
Replaces every occurance of the given regexp with the replacement string. Modification of the subRegex function from regex-posix package.