27.10.2011, 14:03
Edit: this one is giving invalid character constant now
pawn Code:
stock ContainsIPEx(const string[])
{
static RegEx:rCIP;
if ( !rCIP )
{
rCIP = regex_build("(25[0-5]|2[0-4][0-9]|[0-1]?[0-9][0-9]?\.){3}(25[0-5]|2[0-4][0-9]|[0-1]?[0-9][0-9])");
}
return regex_match_exid(string, rCIP);
}