I am trying to replace all occurrences of a regexp pattern with a new word. Currently I can only replace the coinsurance if it is an individual word that separated by space " ", but I would like to replace all of them even if they are in the middle of a word. Here is an example:
for string: abc:target12 target12 cdtarget23 target
I would like to replace all the occurrences of target[0-9]{2} with "ok", so after the replacement, the new string would be like: abc:ok ok cdok target
Thanks!