Hi...does any one know to remove a plain html page full of links at one go?
I'm trying to extract some data from a table but I don't want the hyper links, there are few hundred different links so I can't do a find and replace.
Thanks in advance.
Hi...does any one know to remove a plain html page full of links at one go?
I'm trying to extract some data from a table but I don't want the hyper links, there are few hundred different links so I can't do a find and replace.
Thanks in advance.
You'll probably want to use a text editor that can use 'regular expressions'. That way you can just remove the '<a XXXXX>' and '</a>', so leaving the link text as normal text. I don't know of a free one for windows (there probably is one though).
^ I second that. Edit Plus is an excellent piece of software.
you could also write a little script to do it... shouldn't take more than 5 minutes if you know php
Chris and Moonshield: Thanks for mentioning editplus, I just downloaded it and it's great. I wish I had known about it before, I really could've used it. heh
Thank you so much everyone...But I dont really understand just yet...
So for example I have many different links like :
<a href="http://www.yahoo.com">Yahoo</a>
<a href="http://www.google.com">Google</a>
What do I key in the find and replace?
Last edited by danielng; 11-22-2005 at 12:12 AM.
I have another question about CSS
Is it possible to set a table with different background cell colours for alternate rows using CSS?
This is the current stylesheet for my table.
.stats {
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
line-height: 15px;
color: #333333;
background-color: ##F5F5F5;
}
Have a google for something like 'regular expressions removing hyperlinks' - it should reveal something. or search for 'regular expressions guide' to find how to make your own little reg. exp.
http://www.w3.org/TR/css3-selectors/#structural-pseudos would be for that but you'd be much better off using php or javascript.Originally Posted by danielng
Originally Posted by r2d2
Got the regular expression thingy worked out.
I did a find and replace for <a href="http://[^"]+"> and all the links were removed in an instant.
Thanks...
Bookmarks