Hello :D short question: What is the difference between
String geb = tf_datum.getText();
String sep = ""; //sep is short for seperator
geb = geb.replaceAll("\\.", sep);
geb = geb.replaceAll("\\,", sep);
geb = geb.replaceAll("\\-", sep);
geb = geb.replaceAll("\\ ", sep);`
and
String geb = tf_datum.getText();
String sep = "";
geb = geb.replaceAll("\\.", Matcher.quoteReplacement(sep));
geb = geb.replaceAll("\\,", Matcher.quoteReplacement(sep));
geb = geb.replaceAll("\\-", Matcher.quoteReplacement(sep));
geb = geb.replaceAll("\\ ", Matcher.quoteReplacement(sep));
Because both is functionating. I tried to understand each method (in the second one) and to put it together but it makes no sense. If somebody can help me, that would be very nice! Thanks. :) (and I also found the other question which seems to be the same, but he did not use the Matcher.quote inside of the replaceAll() ... so I was not shure if it is the same)