Hi everybody..
The error I am getting is
"Warning: preg_match() [function.preg-match]: Compilation failed: missing terminating ] "
This happened because I'd supplied syntactically wrong regular expression to preg_match.
This expression are to be supplied by user, so I don't have control over it.
I just want to suppress this error. I don't want this warning on browser.
I also tried using try catch block but no luck.
any help?
Regards,
Ashish
The error I am getting is
"Warning: preg_match() [function.preg-match]: Compilation failed: missing terminating ] "
This happened because I'd supplied syntactically wrong regular expression to preg_match.
This expression are to be supplied by user, so I don't have control over it.
I just want to suppress this error. I don't want this warning on browser.
I also tried using try catch block but no luck.
any help?
Regards,
Ashish
Comment