I need to use Apache's StringUtils.replaceEach() method for replacing set of strings. However, this methods also replaces substrings in the word. I know I can use replaceAll method with \b regex. But I wanted to know if there's a way to tell StringUtils to not replace substrings.
Thanks in advance,
StringUtilsclass is envisioned to operate on strings in general. Yet, you can have a look at the source code:https://github.com/apache/commons-lang/blob/master/src/main/java/org/apache/commons/lang3/StringUtils.java#L5749
There is also WordUtils class but it also does not contain what you need.