in reply to How would I find a piece of html from a sourcefile.html?
This will grab the string inside the comment; add appropriate qualifiers to the regexp as necessary (or use another on $commented) if you only want to pick certain stuff out.$page =~ /<!--\w+(.*)\w*-->;/; $commented = $1;
|
|---|