I'd like to use formatting in my forum's messages, in the same way as this forum works (ie. adding [/b ] is rendered as bold tags when the message is displayed)
what's the best method to approach this with? I could use strstr to detect if there are any "[" characters in the message and then extract the string until a corresponding "[/" is found ... but this seems like a slow way to do it.
Is this something that a regular expression could do?
thanks for any help!