I have to remove words in a phrase (anywhere in it) and have this so far:
replace(/^(dog|cat) */, '');
This is working only if 'dog' or 'cat' are in the beginning of a phrase, but does not do the job if it is somewhere else. I see that the question is in this ^ symbol, but I am lacking knowledge to construct a complete query.
EDIT: The thing I need is something like this to work for other words in a string as well (including Cyrillic):
replace(/\s*\b(?:DOG|dog|СОБАКА|собака)\b/g, '');