The preg_match I posted above basically searches the string for any numbers and returns true if it finds any.
Basically I have created a search form in PHP and the user has the ability to select "Exclude hyphens" and "Exclude numbers" from search options. When they select Exlude hyphens for example, the search should return only rows that DO NOT contain hyphens. The same applies for numbers.
I am trying something like this, but to no avail:
select * from domains where domain NOT LIKE '^[0-9]+$'