How to find a whole word in a String in Java?
The example below is based on your comments. It uses a List of keywords, which will be searched in a given String using word boundaries. It uses StringUtils from Apache Commons Lang to build the regular expression and print the matched groups. String text = “I will come and meet you at the woods 123woods … Read more