jQuery in Action, 3rd edition
The moose likes Beginning Java and the fly likes Replace URL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Replace URL" Watch "Replace URL" New topic

Replace URL

Devutty Pradeep

Joined: Jan 21, 2003
Posts: 3
I've a string with so many urls like "This string causes trouble http://www.abc.com and this also https://www.abc.com and this also www.xyz.com. Ive to display it as links in the page.How do i do that? Any inbuilt functions to do this?
karl koch
Ranch Hand

Joined: May 25, 2001
Posts: 388
- check out the java.util.regexp package.
- do it yourself with a StringTokenizer
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
As links to what on what kind of page? What trouble are you having? What code are you using? Do you have a guess as to why you're experiencing a problem?

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
I agree. Here's the link: http://aspose.com/file-tools
subject: Replace URL
It's not a secret anymore!