in reply to regex in html
...should work just fine. $current will now contain everything between the comments. If you want to insert the contents of $current somewhere else, there's no need to use another regex:($current) = $everything =~ m/<!---CURCON-->(.*)<!---END CURCON-->/s;
...which will sandwich $current between $start and $end, which is what it looks like you want.$new = $start . $current . $end;
Gary Blackburn
Trained Killer
|
|---|