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