Page 1 of 1

Regular Expression for HTML URL

Posted: Wed Sep 10, 2003 7:43 pm
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

Posted: Wed Sep 10, 2003 7:45 pm
by GolfErik
Sorry, I figured it out. I used <.*> and that seemed to work. Just thought I would share that.