Say I have a document like:
[b]blah[/b]
[img]Thisismyimage.png[/img]
How can I make it so that I completely remove all of the BBcode tags. And also remove all the text from between the [img] tags.
If it helps at all I am using an IPB board. If any knows of a way to easily to parse the BBcode that would be great, however, I am perfectly happy with just removing it.