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