I'm trying to do a friend search app. So to do that I'm using regular expressions like:
SELECT ...
WHERE firstname REGEXP $firstname
And the $firstname variable is a string - for example:
(ch|k)ris
But for some reason it does not work. maybe the ( | ) doesn't work in MySQL?
What can I use instead of that operator to do the same thing?