Improved bbcode table parsing