[QUOTE=kovidgoyal;1109321]No, you can't just insert random tags into XHTML and have it still be valid. A regex can match anything at all. It could match a fragment something like:
Code:
<span class="ONE">Bad, bad bad<a>
Ok, that's true.
The potential to completely mess up the file would be there, for sure.
What suggestion would you give for working on my original example, without using a third format and manually editing it?
Or is there no way at all?