Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
replace("/", "\\\\")
@TO
String.replace("/", "\\\\");
replaceAll erwartet eine RegEx ... replace nicht ... da liegt der unterschied
Vielen Dank, das hatte ich in der Eile vergessen zu erwähnen 🙂
bzwAPI-DOC hat gesagt.:java.lang.String.replace(char, char)
Returns a new string resulting from replacing all occurrences of oldChar in this string with newChar
[/EDIT]API-DOC hat gesagt.:java.lang.String.replace(CharSequence, CharSequence)
Replaces each substring of this string that matches the literal target sequence with the specified literal replacement sequence
Wer kann denn so gut englisch ;P :S
Danke
Und wo liegt der unterschied zwischen replaceall und replace???