Jump to content

Regex help needed with MySQL


golfwebuk

Recommended Posts

Hi Guys!

 

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]+$'

 

Please help  :shrug:

Link to comment
https://forums.phpfreaks.com/topic/198284-regex-help-needed-with-mysql/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.