in reply to escaping <!-- and --> in substitution...or other help plz
Many charactures have to be escaped in regex's...
try changing:
$content =~ s/<!--\n//;
to
$content =~ s/\<\!\-\-\n//;
and
$content =~ s/\n-->//;
with
$content =~ s/\n\-\-\>//;
update:I put the code I provided in code tags. I appologize for the low quality of this post. I just started working on a reply when my fiance' tossed my laptop aside and ravanged me. (Kind of like the story of St Kevin but without the nettles, or the nunery) How un-monk-like! I might take another stab at this later.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: escaping <!-- and --> in substitution...or other help plz
by chas (Priest) on Apr 03, 2005 at 02:38 UTC |