<?php $value = '1234567890'; if (! preg_match('/((\d{0,6})-)?(\d{1,10})/', $value, $matches)) { echo 'nope'; } print_r($matches);
You have javascript disabled. You will not be able to edit any code.