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]

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.
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", "");