bb code parser, this is not my work I just altered it for repeating the code tag