frodo
10-22-2002, 06:51 PM
Hello all.
I have a variable ($sch_body_file) in my perl script which holds the contents of a html page. All links in this html page have double quotes (") at the end of the URL. For example
<A href=http://www.cokama.com/" target=_blank>a link to cokama</A>
Basically I need to strip the ending doublequote from all strings which begin with href=http://
The resulting code should look like
<A href=http://www.cokama.com/ target=_blank>a link to cokama</A>
Bearing in mind also there could be multiple links in the HTML page. Unfortunatly I'm not that good at regular expressions so if anybody can help, I would appreciate it.
Cormac.
I have a variable ($sch_body_file) in my perl script which holds the contents of a html page. All links in this html page have double quotes (") at the end of the URL. For example
<A href=http://www.cokama.com/" target=_blank>a link to cokama</A>
Basically I need to strip the ending doublequote from all strings which begin with href=http://
The resulting code should look like
<A href=http://www.cokama.com/ target=_blank>a link to cokama</A>
Bearing in mind also there could be multiple links in the HTML page. Unfortunatly I'm not that good at regular expressions so if anybody can help, I would appreciate it.
Cormac.