Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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 Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "string replac" Watch "string replac" New topic
Author

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
Bartender

Joined: Aug 20, 2001
Posts: 1824

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: string replac