<?php // create a string $string = '1234-5678'; // look for a match echo preg_match("/1234-?5678/", $string, $matches);
You have javascript disabled. You will not be able to edit any code.