I want to remove “ing” from the word, for example, I want the “view” to “look” by removing “ing” from the end of the word. Using regex in java.
i use this template:
String pattern = "$ing";
and use it to delete:
String word = "watching";
word = word.replaceAll(pattern,"");
but the result is still “watching” not “watching”
source
share