<?php // create a string $string = '123'; // look for a match echo preg_match("/[0-9]{1}[0-9]{1}[0-9]{1}/", $string, $matches);
You have javascript disabled. You will not be able to edit any code.