S
sugapablo
I'm trying to replace instances of a single quote "'" with a backslash
single quote "\'".
But I can't get it to work with the replaceAll function.
http://java.sun.com/j2se/1.4.2/docs...eplaceAll(java.lang.String, java.lang.String)
I'm trying String.replaceAll("'","\\'")
What am I doing wrong? Even when I put a "C" in the first argument, it
only replaces it a single quote. Not a backslash and then a single
quote.
single quote "\'".
But I can't get it to work with the replaceAll function.
http://java.sun.com/j2se/1.4.2/docs...eplaceAll(java.lang.String, java.lang.String)
I'm trying String.replaceAll("'","\\'")
What am I doing wrong? Even when I put a "C" in the first argument, it
only replaces it a single quote. Not a backslash and then a single
quote.