19.12.2011, 02:27
Regular expressions are commonly used to combat these sorts of problems.
I imagine the code above should work, I ******d an example for removing HTML tags, as I couldn't remember the wildcard syntax.
pawn Код:
regex_replace(szMessage, "s/{[a-zA-Z\/][^>]*}//g", "", szMessage, sizeof(szMessage));