We can do this using programming languages. But getting the result from mysql is hard to find.
I have column in a table that has string values.
ex: saturday monday tuesday wednesday thursday friday sunday
If I search monday from the above string, the query should give only monday as my result.
I need to get only the searched word from the string as a mysql result.
I tried the following query.
SELECT SUBSTRING_INDEX(usertext,'STORY',0) FROM `usertext`
But it didn't give any result.
I am looking for regular expression to find the solution.
If my question is not clear, kindly comment.