- or download this
$comments =~ s/<!--.*?-->//g;
$comments =~ s/<!--(.|\s)*?-->//g;
- or download this
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HEAD>
...
</HEAD>
<BODY>
<p> <!- not a comment, just regular old data characters ->
- 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.
- or download this
/<!(?:--(?:[^-]*|-[^-]+)*--\s*)>/
- or download this
use Regexp::Common;
/$RE{comment}{HTML}/