Use the regex:
"[a-z]+[A-Z]+"
(a-z)+
matches literal a-z
one or more times and (//W)
matches literal //W
one time.
Square brackets are used for character ranges, not parentheses.
And if you meant \\W
, this is equivalent to [^\\w]
, meaning "not word characters". It will be matching stuff like punctuation and spaces.