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

but this here seems to be some pseudo-code for forums etc - I have no idea if there are modules to parse that

May I recommend Parse::BBCode by tinita?

(Disclaimer: I'm a bit biased because I wrote a few tests for that module, and discussed some design questions with the author).

Replies are listed 'Best First'.
Re^3: Eugh, regex :(
by ultranerds (Hermit) on Mar 25, 2009 at 09:55 UTC
    >>May I recommend Parse::BBCode by tinita? <<

    This is for some forum software already - so when I get the data, it comes as BBCode, so no point converting back/forth :) Just need to get rid of the damn URL stuff =)

    Cheers

    Andy
      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.