How to match non-word boundaries using Java RegEx?

Posted by Ramesh Singh | Updated on

If you want to match non-word boundaries using Java RegEx? You match a specific word in a string. e.g. We will match “java” in “java is object oriented language”. But it should not match “javap” in “javap is another tool in JDL bundle”.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers