Regular expression for Regular expressions?
- by kavoir.com
I have an app that enables the user to input a regular expression, my question is how to check against any input of regular expressions and make sure they are valid ones because if they are not there will be preg_match errors.
I don't want to use the '@' before preg_match, so if there's a way to check the validity of the user input of regular expressions that'd be great.
The regular expression system of PHP seems to be rather too complicated for me to come up with a regular expression for them. Any idea or any alternatives would be possible in achieving this?