try@links1="<a href=\"www\.testurl\.com\">"; @links1=~s/.*/href\s*\=\s*\".*?\"/is;
You're escaping more than you need to in the regex, and you're not capturing the the left-hand side the subset of the string that you want to make the replacement with on the right-hand side.$links1 = '<a href="www.testurl.com">'; $links1 =~ s/<a\s+(href=".*?")\s*>/$1/is;
In reply to Re: Substitution Problem
by dws
in thread Substitution Problem
by Wassercrats
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |