Hsed-0.2.2: Stream Editor in Haskell

Hsed.SedRegex

Description

 

Synopsis

Documentation

sedSubRegexSource

Arguments

:: 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.