I have a log records in html, and would like to capture all the landline and mobile numbers that are scattered around the file, I use the following regular expression currently: /(\(?\d{2}\)?) ?9?\d{4}-?\d{4}/
, only it is letting pass some numbers that not phones, what's wrong?
preg_match_all('/(\(?\d{2}\)?) ?9?\d{4}-?\d{4}/', $phone, $out);
echo '<pre/>';
print_r(array_shift($out));
number passed: 99988877766