I'm guessing you want 'string' to be what follows '<idlink>'? If so, this ought to work:

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

Change the 'i' at the end to 'gi' (for global, insensitive) to have it process a string with multiple URLs.

HTH,
Dan


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