12.12.2015, 15:21
The best way to do this would a regular expression. But if you don't want to load another plugin, it may also work with sscanf. Perhap something like:
PHP код:
for(new i, j = strlen(string)); i < j; i++)
{
if('0' <= string[i] <= '9')
{
if(!sscanf(string[i], "{p<.>a<i>[4]S()[144]}"))
{
// found ip
break;
}
}
}

