First question here. I'm trying to search and replace in MySQL to replace whole words only. Here's an example section of a string in the database:
...has a "front end" (not ending) that you are looking at now...
I want to be able to replace the word end while leaving the word ending alone.
This is my query so far, but it's not working. It's replacing both instances of end.
UPDATE mfvjy_content
SET introtext = REPLACE(introtext, 'end', 'endR')
WHERE introtext REGEXP '[[:<:]]end[[:>:]]' AND id = 2
Anyone got any ideas on why the word boundaries aren't working? Thanks!