Regular Expression for HTML URL

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
GolfErik
Posts: 2
Joined: Wed Sep 10, 2003 7:38 pm

Regular Expression for HTML URL

Post by GolfErik »

I need to remove all html url's from a document. This is what I have currently:

<a href="http://www.blah.com">www.blah.com
<a href="http://www.dodo.com:>www.dodo.com
etc....

I already removed the </a>, but I also need to remove all the <a href="www.variables_sites.com"> references. Since these are the only elements between the <>'s I figured I could just create something to remove all instances of "<anything in between>", but I couldn't figure it out.

Thanks
GolfErik
Posts: 2
Joined: Wed Sep 10, 2003 7:38 pm

Post by GolfErik »

Sorry, I figured it out. I used <.*> and that seemed to work. Just thought I would share that.
Post Reply