1 - [0-9]+ of ([0-9,]+) for ", $result, $matches)) { print str_replace(",", "", $matches[1]) . "\r\n"; } //fclose($sp); } fclose($fp); ?>