<?php$text = "(85) 687 18 88"; preg_match_all('(\(\d{2}\) \d{3} \d{2} \d{2})',$text,$matches);print_r($matches);
Standard input is empty
Array ( [0] => Array ( [0] => (85) 687 18 88 ) )
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!