Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Golf: Fix de facto HTML comments

by dws (Chancellor)
on Jul 18, 2004 at 22:11 UTC ( #375433=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # 345678 1 2345678 2 2345678 3 2345678 4 2345678 5 
    s/<!--(.+?)-->/(my$x=$1)=~s#--#-#g;"<!--$x-->"/seg
    
  2. or download this
    # 345678 1 2345678 2 2345678 3 2345678 4 2345678 5 23
    s/<!--(.+?)-->/(my$x=$1)=~s#--#-#g;"<!-- $x -->"/seg
    
  3. or download this
    # 345678 1 2345678 2 2345678 3 2345678 4 2345678 
    s/<!--(.+?)-->/(my$x=$1)=~s#-##g;"<!--$x-->"/seg
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (13)
As of 2016-04-29 15:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    :nehw tseb si esrever ni gnitirW







    Results (441 votes). Check out past polls.