Possible Duplicate:
php regular expressions No ending delimiter ‘^’ found in
The code is as follows:
if(preg_match($exp, $value)){
return "";
}
- the value of
$exp
is:^[0-9]*$
- the value of
$value
is:7
and the output gives :
Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in /...