Help for this page

Select Code to Download


  1. or download this
    $comments =~ s/<!--.*?-->//g;
    $comments =~ s/<!--(.|\s)*?-->//g;
    
  2. or download this
        <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
        <HEAD>
    ...
        </HEAD>
        <BODY>
        <p> <!- not a comment, just regular old data characters ->
    
  3. or download this
       [91] comment declaration =
     2         mdo,                                           [ <! ]
    ...
        
       No markup is recognized in a comment [ [92] 391:7], other than the
    12 com delimiter that terminates it.
    
  4. or download this
        /<!(?:--(?:[^-]*|-[^-]+)*--\s*)>/
    
  5. or download this
        use Regexp::Common;
        /$RE{comment}{HTML}/