voyager has asked for the wisdom of the Perl Monks concerning the following question:
my attempts:stuff i don't want <!---CURCON--> stuff i do want <!---END CURCON--> more stuff i don't want
to no avail. I suspect I am not escaping some characters properly.$current =~ s/<!---CURCON-->(.*)<!---END CURCON-->/$1/s; $start = '<!---CURCON-->'; $end = '<!---END CURCON-->'; $current =~ s/$start(.*)$end/$1/s;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jeffa) Re: regex in html
by jeffa (Bishop) on Apr 01, 2001 at 20:27 UTC | |
by cLive ;-) (Prior) on Apr 02, 2001 at 04:33 UTC | |
by jeffa (Bishop) on Apr 02, 2001 at 17:29 UTC | |
|
Re: regex in html
by Trimbach (Curate) on Apr 01, 2001 at 20:30 UTC | |
|
Re: regex in html + from ... to
by bjelli (Pilgrim) on Apr 02, 2001 at 13:39 UTC | |
by AidanLee (Chaplain) on May 04, 2001 at 17:18 UTC | |
by davorg (Chancellor) on May 04, 2001 at 17:28 UTC |