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.
Moderator: admin
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.
Do you mean word-boundary is considered a white space ?admin wrote:\\S means non-white space. Word boundary is not considered as non-white space.
HTH,
Paul.
Users browsing this forum: No registered users and 238 guests