About Question enthuware.ocpjp.v7.2.1182 :
Posted: Fri May 10, 2013 5:45 pm
String str = "she sells sea shells";
String rex = "\\Ss\\S";
Explanation:
String rex = "\\Ss\\S";
Explanation:
Why doesn't it found the first and last 's' on this string ? So they are not surrounded by spaceTherefore, \\Ss\\S matches any s that is surrounded by a non white space character on both sides.