I've this string in many records [spoiler:abcdefgh]. abcdefgh are variable characters. I want this to became [spoiler]. So I want to remove :abcdefgh.
I know that the query is:
UPDATE post
SET pagetext = replace(pagetext, ‘text you want to replace’, ‘replacament text’);
How can I replace variable characters?
For example, if I have [center:uezfbb79]texttt[/center:uezfbb79] then I want this to became: [center]texttt[/center]
"uezfbb79" are not fixed, these are random characters.