Removing...
#4

Regular expressions are commonly used to combat these sorts of problems.

pawn Код:
regex_replace(szMessage, "s/{[a-zA-Z\/][^>]*}//g", "", szMessage, sizeof(szMessage));
I imagine the code above should work, I ******d an example for removing HTML tags, as I couldn't remember the wildcard syntax.
Reply


Messages In This Thread
Removing... - by Scenario - 19.12.2011, 02:04
Re: Removing... - by Hoborific - 19.12.2011, 02:07
Re: Removing... - by Scenario - 19.12.2011, 02:20
Re: Removing... - by Calgon - 19.12.2011, 02:27
Re: Removing... - by Hoborific - 19.12.2011, 02:28
Re: Removing... - by Scenario - 19.12.2011, 02:31
Re: Removing... - by Scenario - 19.12.2011, 03:29

Forum Jump:


Users browsing this thread: 1 Guest(s)