yep, converted to php, 1 line of code with
preg_match($pattern, $line, $match_array)
(a few more lines with the loop around it and the other pattern matches)
my favorite bit, the echo at the end of the function that returns:
.... cleaning .... 24396 records processed .... 1.1162s
thx again...