I want to find words (that means whitespace before and after) based upon a search string
for example:
String s = "sdaaf fd hgfaaf ghjfada dgffaasdf";
and i want to find all the word that contain the String "aa"
the answer will be the words:
"sdaaf" , "hgfaaf" , "dgffaasdf"
You don’t solve this problem via regex, as there is a more direct way to go about it.