Question: Is there a way to use the patter `\p{Punct}` in a regex in Java without the Symbol `|`. 
I tried `\\p{Punct}&&[^|]`, but it didn't worked.

Answer: 
What you have is nearly correct. The correct syntax is:

```
[\\p{Punct}&&[^|]]

```
Did you see this question: [Punctuation Regex in Java](https://stackoverflow.com/questions/8200908/punctuation-regex-in-java)?

I think you can modify that answer slightly to use `(?![|])\\p{Punct}`