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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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 and this also and this also 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:
subject: Replace URL
It's not a secret anymore!