http://forums.alliedmods.net/showpos...91&postcount=4 or
http://forums.alliedmods.net/showpos...4&postcount=24
But it's not hard to follow what regex.inc says.
In my example, I'm using regex_compile() because the pattern will be the same and used severals times so it's better to precompile the pattern. To match a string, you will have to use regex_match_c().
Without using regex_compile(), use directly regex_match(). Don't forget to free the handle after usage, regex_free().
It's pretty easy to do and the .inc is well commented, what don't you understand ?