thanks, would something like the following work as well?
where $lines is the array containing the lines with text and ip's
foreach($lines as $ips) {
preg_match('/(?<={)(\d{1,3}.){3}\d{1,3}(?=})/', $ips, $matches))
}
print_r($matches)
If you hadnt figured already, I'm making a script to parse some log files. There will be 500,000 of lines of text. Is PHP going to be good for this job or would I be best off to use something else such as Perl or even bash? I'm wondering how it's going to handle having that huge file loaded to memory with the file() command.