Say I have a string like this in java:
\"this is {my string: } ok\"
Note, there can be any number of white spaces in between the various characters. How do I
The easiest thing to do is to strip all the spaces from both strings.
return stringToSearch.replaceAll("\s", "").contains( stringToFind.replaceAll("\s", ""));