fork download
  1. <?php
  2. $text = "(85) 687 18 88";
  3.  
  4. preg_match_all('(\(\d{2}\) \d{3} \d{2} \d{2})',$text,$matches);
  5. print_r($matches);
Success #stdin #stdout 0.02s 52472KB
stdin
Standard input is empty
stdout
Array
(
    [0] => Array
        (
            [0] => (85) 687 18 88
        )

)