sanaaafkir
Messages postés17Date d'inscriptionvendredi 17 novembre 2000StatutMembreDernière intervention13 mars 2008
-
7 mars 2006 à 11:52
cs_amalita
Messages postés5Date d'inscriptionjeudi 8 mars 2012StatutMembreDernière intervention19 mai 2012
-
5 mai 2012 à 13:50
bonjour;
comment peux utiliser l'antislash "" avec une methode Split en java
et merci en avance.
The same backslash-mess occurs when providing replacement strings for
methods like String.replaceAll() as literal Java strings in your Java
code. In the replacement text, a dollar sign must be encoded as \$ and
a backslash as \\ when you want to replace the regex match with an
actual dollar sign or backslash. However, backslashes must also be
escaped in literal Java strings. So a single dollar sign in the
replacement text becomes <tt>"\\$"</tt> when written as a literal Java string. The single backslash becomes <tt>"\\\"</tt>. Right again: 4 backslashes to insert a single one.