I am trying to make a simple regex expression for a master search in my MYSQL query.
All I want to do is return a match even if the value has spaces in it and my search value does not.
E.G.
If the user enters 'JoeBlogs' and I try to match this against the clients full name I wish the client to be returned even if there is a space between joe and blogs. Joe Blogs
Did not want to use REPLACE in my where clause as I know this can be quite expensive.
Currently just looking for exact matches like so.
WHERE client_name RLIKE '^joeblogs'
I assume this would be quite simple with regular expressions but have not yet got around to learning regex's
Thank you