Boy, what a sip ...
I want to parse tokens from a string. Tokens can be a word or phrase, and I want to replace each occurrence of any of the tokens with a string. I would like to do this without using a cursor.
Ref.
declare @str varchar(256) = 'I want this type to be left and of type to be gone. the and a should also be gone of course remains' create table
what I want is a built-in function that will replace any of the list of tokens found in the string with `` (empty string).
source share