<?php $regexp = '/\(*(\d{2})\)*\s*(\d{4,5})\s*.*\s*(\d{4})/i'; $matches=array(); preg_match_all($regexp, '(11) 4789 2180', $matches); print_r($matches);
You have javascript disabled. You will not be able to edit any code.