replace 2 « character « Java Data Type Q&A

1. Replacing special chars in Text (like German Umlauts) in a 1 liner?

but hat's not the problem. I just know the meaning of $ in regexes and ther is no "Illegal Group Reference" Problem. The solutions in the thread you posted are using the "appendReplacement()" function of a Matcher as i do in my sample code. I know that - but i would like to do it in one line with the replaceAll() ...

2. Replace Strings between 2 characters