in reply to Golf: Fix de facto HTML comments
while ($input =~ s/(.*?)(<.*?>)//) { $w=$1; $q=$2; 1 while $q =~ s/(--.*?)-(.*?-->)/$1¬$2/sg; $output .= "$w$q"; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Golf: Fix de facto HTML comments
by Solo (Deacon) on Jul 19, 2004 at 00:24 UTC |