Replace period with white space
I am trying to replace a period in a string with a white space. It does not want to work with a period but works just fine with a comma!
Please can somebody tell me what I am doing wrong.
This is the code that I am using:
System.out.println("Unicode:" +"\u002E");
CharSequence inputStr ="12.345,67";
String patternStr ="\u002E";
String replacementStr =" ";
//Compile regular expression
Pattern pattern = Pattern.compile(patternStr);
//Replace all occurrences of pattern in input
Matcher matcher = pattern.matcher(inputStr);
String output = matcher.replaceAll(replacementStr);
System.out.println("output:" + output);

