I’m using the code below to replace the letters "êm" with "em", but it’s not working.
str = str.replaceAll('êm', 'em');
I want to use the code to remove the accents only from some specific words such as: "crêem", "vêem", "dêem". I can’t do a general code, because other words like "têm" need to be kept with the accent.
2
Answers
Just replace the accent ê with e:
Which prints:
You can achieve this by below code: