File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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: 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:
subject: string replac
It's not a secret anymore!