replaceAllstring

hi,i want to replace "/protected" from the string given below. pl suggest me here.http://localhost:7201/crn/protected/protected/contentviewer.jsp
[197 byte] By [bobza] at [2007-11-27 6:34:14]
# 1
[url= http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html#replaceAll(java.lang.String, java.lang.String)]String.replaceAll[/url]
thomas.behra at 2007-7-12 18:00:32 > top of Java-index,Java Essentials,Java Programming...
# 2
you can seacr the characters of the string, when you find "/", you can check the following characters to see if they from "protected", then you can take the substring which is beginning until protected, and proteceted till end, then merge them as a string.
nayon_7a at 2007-7-12 18:00:32 > top of Java-index,Java Essentials,Java Programming...
# 3
Since JDK 1.5, you there is also the replace(CharSequence, CharSequence) method, for cases like this where you don't need the power of regexes. str = str.replace("/protected", "");
uncle_alicea at 2007-7-12 18:00:32 > top of Java-index,Java Essentials,Java Programming...