http://qs321.pair.com?node_id=906329


in reply to Possible with a regex?

There should already be modules on CPAN that parse or convert BBCode.