I am trying to search a table for text
column that contains a URL. So I used this:
SELECT * FROM table WHERE text REGEXP '((http|ftp|https):\/\/([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-])?)'
But I get this error below
#1139 - Got error 'repetition-operator operand invalid' from regexp
I need to get rows that the text
column contains a URL string, something like this:
"Hello http://www.google.com World http://examples.com"