Hi
I am trying to remove spaces from a string like this
Strins s = "object This .setSomething(rs .getString("something") )";
//regex i am using is
Pattern.compile("\\b\\s+\\b");
But using that regex, the String I get back is like this
objectThis .setSomething(rs .getString("something"))
So it seems like that it removes spaces from everywhere else except when there is a '.' (dot). What can i add to my regex to avoid this issue?