Hi, I want to find a certain word in a string and replace it with 'TEST'. For example: String: Donotgotothemarketwithoutmoney Word: market Output: DonotgototheTESTwithoutmoney Therefore, I would need a regex to search for 'market' in the input string, match it and replace it with 'TEST'. Many thanks and kind regards, Razvan
asked
Razvan Cojocaru
3 answers
4
If you just want to replace a literal string without worrying about special regex characters you can either