I think this is what you are looking for:

$string =~ s/\<a\s*href\=\"(.*?)\"\>.*?\<\/a\>/\<idlink\>$1/;

If you want to capture the link text as well, put brackets around the 2nd
'.*?' and reference it as $2.

Hope that's what you are after.


Conrad



On 11/14/03 8:25 AM, "xweb" <[EMAIL PROTECTED]> wrote:

> Can someone help me about a regular ?
> In which way i can substitute <a href="$url">string</a> with
> <idlink>$val1.
> Thanks
> Paolo
> 

Reply via email to