Why do i get \"AAAAAAAAA\" instead of \"1A234A567\" from following Code:
String myst = \"1.234.567\"; String test = myst.replaceAll(\".\", \"A\"); System.o
Because every single char of the input matches the regexp pattern (.). To replace dots, use this pattern: \. (or as a Java String: "\\.").
.
\.
"\\."