in reply to Re: Re: Substitution Problem
in thread Substitution Problem

...meant that I'd like to put the replacement string on the right. I want to replace the entire string.

Replies are listed 'Best First'.
Re: Re: Re: Re: Substitution Problem
by bart (Canon) on Sep 10, 2002 at 07:16 UTC
    I want to replace the entire string.
    Then don't use s///, use a plain match plus an assignment instead.
    $links1 =~ /<\s*a\s*(href\s*=\s*".*?").*>/is and $links1 = $1;