T
Tony W
Hello,
I know nothing about perl but have a perl script that I need to
modify.
The line below removes all web links but leaves the text in the file.
# Remove existing glossary links
$newbody =~ s/<A HREF=\"Javascript\opup\('[0-9]+',[^>]*>([^<]*)<\/A>/$1/ig;
eg. Starts with this:
<a href="JavaScriptopup('104',380,460);" class="results">rent in
advance</a>
ends with this:
rent in advance
I don't really understand the code but I know that all current links
are in the format that I've shown in the example above.
I want a line that will remove any a href link, except for the term
(eg landlords - as below)
<a href="/privrent/landlordresps-360-Een-f0.cfm"
class="results">Landlords</a>
I know nothing about perl but have a perl script that I need to
modify.
The line below removes all web links but leaves the text in the file.
# Remove existing glossary links
$newbody =~ s/<A HREF=\"Javascript\opup\('[0-9]+',[^>]*>([^<]*)<\/A>/$1/ig;
eg. Starts with this:
<a href="JavaScriptopup('104',380,460);" class="results">rent in
advance</a>
ends with this:
rent in advance
I don't really understand the code but I know that all current links
are in the format that I've shown in the example above.
I want a line that will remove any a href link, except for the term
(eg landlords - as below)
<a href="/privrent/landlordresps-360-Een-f0.cfm"
class="results">Landlords</a>