Is there a way to use \\p{Punct} in a regex in java, but without the two characters ( and ) ?
\\p{Punct}
(
)
This should work:
[\p{Punct}&&[^()]]
&& is the intersection operator for character classes, so the intersection of \p{Punct} and [^()] is what you're after. See Character Classes.
&&
\p{Punct}
[^()]