I have a php5 app which performs mysql searches, and I give the user the possibility to enter a regular expression to use with RLIKE.
I want to be sure that the regular expression is valid, in order not to get any error when the query is executed, and I searched the web for a regex to use in php, which validates the mysql regex. I couldn't find anything.
I'm able to build a regex, but my hope is that someone already did this work. Any help to find it?