Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: Golf: Fix de facto HTML comments

by ysth (Canon)
on Jul 18, 2004 at 22:00 UTC ( #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.

Comment on Re: Golf: Fix de facto HTML comments
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (12)
As of 2016-02-10 20:50 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (354 votes), past polls