Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Golf: Fix de facto HTML comments

by ysth (Canon)
on Jul 18, 2004 at 22:00 UTC ( [id://375431]=note: print w/replies, xml ) Need Help??


in reply to Golf: Fix de facto HTML comments

Here's what I got (63, but much clearer than blokhead's, at least to me):
substr($_,$-[1],$+[1]-$-[1])=~s/--/-\xad/g while/<!--(.*?)-->/g
Update: Sigh; I see I fell prey to the same trap blokhead did. I'll see if I can fix it.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2025-07-20 12:05 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.