I have a column with a product description. I want to do a search on this column with a regexp and only return the match from the regexp instead of the complete content of the column.
i.e. I have a description
This magnificent bead is high on detail
and
The bracelet has a magnetic closure
SELECT description FROM products WHERE description RLIKE"'magn.*\s"
This should return magnificent and magnetic
SELECT description FROM products WHERE description RLIKE"'magni.*\s"
This should return magnificent
But of course this current queries return the complete descriptions. Any pointers how I could do this. MYSQL 5.5