one question
is the system same as amxmodx regex?
Did I done this correctly?
PHP Code:
bool:is_invalid(const text[])
{
new error[50], num
new Regex:regex = regex_match (text, "([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]))", num, error, 49, "i")
if(regex >= REGEX_OK)
{
regex_free(regex)
return true
}
return false
}
PS: can not test things on this week.