<div dir="ltr">Hi!<br><br>There was "recently" a family libraries published for exactly this purpose:<br><a href="https://github.com/jamesdbrock/replace-attoparsec">https://github.com/jamesdbrock/replace-attoparsec</a><br>In the past I've done it character by character, but I definitely wasn't caring about performance then. I would assume the replace-* family of libraries are more efficient for the purpose<br><br>=======<br>Georgi</div>