Hi, I decided to improve the tests of the PEG module because I wasn't very confident about the [^...] functionality, and I found I had some minor bugs in the previous patch. I attach a new version of the previous commits with an extra one that adds an HTML parser and tests against it. That's what made me find some of the errors and missing bits. With the test I feel more confident about the changes. Thanks, Ekaitz