showing warning for the use of / in perg_match
Posted: Fri Aug 13, 2010 6:38 am
hello friends
m validating one input field in php. for that i m using perg_match function .
but this code is showing the below message
"Warning: preg_match() [function.preg-match]: Unknown modifier ',' in C:\wamp\www\inventory\desktops\update.php on line 158"
can anyone tell me how to use / symbol , so that it won`t give that warning
m validating one input field in php. for that i m using perg_match function .
Code: Select all
preg_match('/[^a-zA-Z/., ]/', $vendor)"Warning: preg_match() [function.preg-match]: Unknown modifier ',' in C:\wamp\www\inventory\desktops\update.php on line 158"
can anyone tell me how to use / symbol , so that it won`t give that warning