in reply to Re: Re: Why doesn't non-greediness work?
in thread Why doesn't non-greediness work?

Yes, but notice that you escaped one of those semicolons... In the original, the semicolon that was part of the smiley was not escaped.

The one serious conviction that a man should have is that nothing is to be taken too seriously. -- Nicholas Butler
  • Comment on Re: Re: Re: Why doesn't non-greediness work?

Replies are listed 'Best First'.
Re^4: Why doesn't non-greediness work?
by Aristotle (Chancellor) on May 13, 2003 at 15:31 UTC
    Please familiarize yourself with the quoting rules in Perl. All of the following work as well:
    $body =~ ss<img(.+?)="Wink">s;)sg; $body =~ s$<img(.+?)="Wink">$;)$g; $body =~ s,<img(.+?)="Wink">,;),g; $body =~ s[<img(.+?)="Wink">]\;)\g; $body =~ s}<img(.+?)="Wink">}{;)}g; $body =~ s&<img(.+?)="Wink">&;)&g; # .. ad nauseam

    Makeshifts last the longest.