in reply to Re^3: Eugh, regex :(
in thread Eugh, regex :(

I know that the documentation says that this module converts BBCode to HTML, but it also lets you modify the parse tree, and convert it back to bbcode with the raw_text method.