This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes string replac Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "string replac" Watch "string replac" New topic

string replac

Allen Chan
Ranch Hand

Joined: Jun 07, 2002
Posts: 64
anyone can give me a quick dirty way to replace a substring in a (html)document recursively?
Joel McNary

Joined: Aug 20, 2001
Posts: 1817

Could you provide an example of what you want to do? I'm not sure if recursively is what you want -- perhaps, repetitively?
Repetitively (replace all of the occurrances):

Recursively (It will replace everything and then check to see if the string exists, and then keep replacing until the original string is no longer found):

Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
Don't get me started about those stupid light bulbs.
subject: string replac
Similar Threads
character representation of a blank space
WA #1.....word association
Singleton in SWING
connection problem
Heavy use of HTTPSession