aspose file tools*
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
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.
 
wood burning stoves
 
subject: string replac