Test if a regular expression is a valid one in PHP
Asked 2012-01-11T18:56:30.203
18
I am writing a form validation class and wish to include regular expressions in the validation. Therefore, the regex provided isn't guaranteed to be valid.
How can I (efficiently) check that the regex is valid?