I have some domains stored in a database and I have created a search to return matching domains based on what the user types.
For example if the user types "h" all domains containing a "h" should be returned.
The problem comes when a user searches for an "o" for example as "o" is contained in the extension (.com and .co.uk).
I am guessing that I am going to need some kind of regex to achieve what I am trying to do. Any help would be greatly appreciated!
Here is the current MySQL query I am using:
domain like '%".mysql_real_escape_string($_GET['keywords'])."%'