>Uhm, that's the one I'm already using.
Yes Adrian, I know. And the code I posted worked fine for me.
When I use it, I get
['74.125.113.27', '127.0.0.1', '127.0.0.1', '127.0.0.1', '89.216.227.38', [snip]
So either we have different inputs, or your code is doing something
different than mine. But the problem does NOT seem to be the fault of
the regular expression. Something else is happening.
Can you post more of your code so we can see why it does not work?
BTW - if you want to clean up the output in shell, and make sure all of the IP
addresses are valid, I'd use something like
program | tr ",]['" "\n " | sort -un |\
awk -F. '{$1 < 256 && $2 < 256 && $3 < 256 && $4 < 256 }'
and sorry for misspelling your name.
_______________________________________________
Pauldotcom mailing list
[email protected]
http://mail.pauldotcom.com/cgi-bin/mailman/listinfo/pauldotcom
Main Web Site: http://pauldotcom.com