View Single Post
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 02-11-2012 , 08:56   Re: [EXTENSION] Regex
Reply With Quote #10

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]))"numerror49"i")
    if(
regex >= REGEX_OK)
    {
        
regex_free(regex)
        return 
true
    
}

    return 
false

PS: can not test things on this week.
.Dare Devil. is offline