regular expression search replace
From: J. VerSchave (carlisle411_at_yahoo.com)
Date: 02/29/04
- Next message: Daniel: "Re: SaX,, Xerces: parse() and IOException caused by wrong URI-encoding ?"
- Previous message: D123: "Preverifing a jar file in j2me"
- Next in thread: Bobo: "Re: regular expression search replace"
- Reply: Bobo: "Re: regular expression search replace"
- Reply: Alan Moore: "Re: regular expression search replace"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 28 Feb 2004 15:22:09 -0800
I am trying to do this using regular expressions in Java:
replace
with
<a href="http://whatever.com">http://whatever.com>
This URL is embedded within a String, i.e.:
String buffer = "The other I came across http://whatever.com. It is
cool.";
I want to perform some operation on this buffer and have the result
be:
"The other I came across <a
href="http://whatever.com">http://whatever.com>. It is cool."
Seems like this should be easy to do but I have been unsuccessful thus
far in finding a solution. Thanks.
-j
- Next message: Daniel: "Re: SaX,, Xerces: parse() and IOException caused by wrong URI-encoding ?"
- Previous message: D123: "Preverifing a jar file in j2me"
- Next in thread: Bobo: "Re: regular expression search replace"
- Reply: Bobo: "Re: regular expression search replace"
- Reply: Alan Moore: "Re: regular expression search replace"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|