Dear all,
I need a little help with a regular expression.
For the following string $htmlline I'd like to replace ALL tags of format <A whatever text> by <A>.
Using the following, it only does it for the first tag it encounters
$htmlline =~ s/<A(.*?)>/<A>/;
$htmlline= <A href="/search.php3?publisherid=9">Publisher1</A><br><A href="/search.php3?publisherid=3">Publisher2</A><br><A href="/search.php3?publisherid=42">Publisher3</A></td>
Thanks for your feedbacks !
Jan
I need a little help with a regular expression.
For the following string $htmlline I'd like to replace ALL tags of format <A whatever text> by <A>.
Using the following, it only does it for the first tag it encounters
$htmlline =~ s/<A(.*?)>/<A>/;
$htmlline= <A href="/search.php3?publisherid=9">Publisher1</A><br><A href="/search.php3?publisherid=3">Publisher2</A><br><A href="/search.php3?publisherid=42">Publisher3</A></td>
Thanks for your feedbacks !
Jan