<?php $a = '123-4567'; if (preg_match("/[0-9]{3}-[0-9]{4}+$/", $a)) { echo 1; }
You have javascript disabled. You will not be able to edit any code.