Hi,
I have extracted links from a html source using HTML::TokeParser.
I used 'a' as a parameter in get_tag method of HTML::TokeParser.Then I want to substitute something for the links that i have extracted.
But the substitution fails for the links in the below lines.
color="#000000" face="NEWS"><a
href="http://www.ani.com/NewsItems.asp?ID=CMK20030808091643&Title=Latest+News+Page&lTitle=L%FBP%A3+%F9Nn%A7Ls&Topic=0"><big>v??Wd
?NnV E??U Cp?XV??: EfN ??Uu\m</big></big><br>
<big><big>?V? L?j?R?u; ?olTpX: T.?RmTWm</big></big></a><br>
</font><big><font color="#ae0000" face="Verdana"><strong>.</strong></font><font
color="#000000" face="TMNEWS"><a
href="http://www.ani.com/NewsItems.asp?ID=CMK20030808064834&Title=Latest+News+Page&lTitle=L%FBP%A3+%F9Nn%A7Ls&Topic=0"><big>?Tvh
?TdL? YZd?: ?_W?j AW?d? EfN??Uu\m</big></big><br>
<big><big>?S?h?v</big></big></a><br>
</font><big><big><a href="http://www.ani.com/NewsItems.asp?ID=CMK20030807101744&Title=Latest+News+Page&lTitle=L%FBP%A3+%F9Nn%A7Ls&Topic=0"></a></big><strong><font
color="#ae0000" face="Verdana">.</font></strong><font color="#000000" face="TMNEWS"><a
href="http://www.ani.com/NewsItems.asp?ID=DNL20030808041423&Title=Latest+News+Page&lTitle=L%FBP%A3+%F9Nn%A7Ls&Topic=0"><big>"?Tl?,
?L?d ?tT?]d?j ?R?V A[?p R?P':</big></big><br>
<big><big>W?UR?v ?L?d?L</big></big></a><br>
Any direction is welcome.....
We would need to see the code not the lines themselves. As an aside if you are substituting a value for the 'href' attribute you shouldn't use a regex. Let the tokeparser do it for you by changing the attribute using the token's methods.
http://danconia.org
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]