You could also make a TextPad Macro to do this for you.
These are the steps to follow to make the macro:
A. Be sure the URL label (
http://www.yahoo.com) is already on the document., and move the cursor to a line above the label.
B. Start Recording macro
1. Find next http:// (F5, Conditions=Text, Direction=Down, Find Next)
2. Close Find Window (Close)
3. Extend highlight to space (Shift-End)
4. Copy to clipboard (CTL-C)
5. Go to start of phrase (Home)
6. Type <a href-"
7. Go to end of phrase (End)
8. Type ">
9. Paste again (CTL-V)
10. Type </a>
C. Stop recording macro and save it.
D. Add the macro to your macro list using Configure, Preferences, Macros.
E. Now you can use the macro on a document by placing the cursor above the "http.." you want to process. Click on Macros, and select from the list.
Notes: This sample assumes one URL per line, nothing else on line. Should work OK on sample code you originally provided
If want to do on URL imbedded in document, more controls will be needed to get to beginning and end of URL label before doing Copy and starting typing at beginning of phrase. See Caution below re editing and "all conditions".
CAUTION! Macros cannot be edited, so it is important to be sure all your steps will be correct and work under all conditions. You will need to make separate identical macros to do one time, or do through the selected area, or do to the end of your document. It may be advisable to select 'run once" to give a little control.
But try the macro approach. When done correctly they are very effective......Good luck....