I have a simple regex :
String expr = "#^" + STARTER + "[.]" + ENDER + "$#";
c = c.replaceAll(expr, STARTER + REPLACEMENT + ENDER);
Result :
A string which contains
STARTER an exemple ENDER
matches but :
STARTER an (exemple) ENDER
doesn't match.
Why are the characters )
, (
and $
excluded from the .
regex class?
How can I make it accept any character?