Hello all,

I have a file that has ip address in it.. I need to pull those ip addresses 
out.
Currently I am trying:

$ips=preg_grep("/^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/",$file);
print_r(array_values ($ips));

And well i am getting nothing!

Anyone?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to