in reply to Re: Why doens't non-greediness work?
in thread Why doesn't non-greediness work?
my %emoticons = ( smiley => ':)', wink => ';)', ); # example: <img alt="smiley"> becomes :) $body =~ s{ ( \< img [^>]*? alt = "(.*?)" [^>]*? \> ) } {$emoticons{$2} || $1}igex;
--
[ e d @ h a l l e y . c c ]
|
|---|