Posted by: image
java question - 15/09/2004 22:56
i'm trying to clean up some dirty data input before passing it on to another method.
the string in question is say, String s = "ST. JOHN%27%27S";
obviously, the %27%27 is actually supposed to be a '
but unfurtunately, s.replaceAll( "%27%27", "'");
no errors happen, but java doesn't seem to see that the pattern is in front of it's face. so, ultimately, i never get the desired effect. any suggestions?
the string in question is say, String s = "ST. JOHN%27%27S";
obviously, the %27%27 is actually supposed to be a '
but unfurtunately, s.replaceAll( "%27%27", "'");
no errors happen, but java doesn't seem to see that the pattern is in front of it's face. so, ultimately, i never get the desired effect. any suggestions?