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

Re: Golf: Fix de facto HTML comments

by Chady (Priest)
on Jul 19, 2004 at 07:47 UTC ( [id://375476] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    s/(?<=<!--)(.*?)-->/($_=$1);s|--|-|g;s|-$||;"$_-->"/seg
    
  2. or download this
    s/(?<=<!--)(.*?)-->/($_=$1);s|--|-|g;s|-$||;"[$_]-->"/seg