Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Golf: Fix de facto HTML comments

by Wassercrats (Initiate)
on Jul 18, 2004 at 23:40 UTC ( [id://375438]=note: print w/replies, xml ) Need Help??


in reply to Golf: Fix de facto HTML comments

What would be the count on this if I took advantage of the idioms and defaults and stuff?
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
    Looks about 116.
    --Solo
    --
    You said you wanted to be around when I made a mistake; well, this could be it, sweetheart.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://375438]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (2)
As of 2025-07-12 20:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.