James Taylor wrote:
ok, well I ended up dropping the regex and splitting the strings and
re-building them after being inspired by another thread.
so,
my $str=text !---begin---
text to
be replac
ed!---end---;
my $repl=replacement text;
my ($a,$b)=split('!---begin---',$str);
my
Ramprasad A Padmanabhan wrote:
James Taylor wrote:
On Jan 2, 2004, at 5:38 PM, James Taylor wrote:
I'm trying to parse a bit out of an HTML file, where the formatting
could change daily as far as spaces/newlines go. Say for example I
have something like this:
$str=EOF;
html
I'm trying to parse a bit out of an HTML file, where the formatting
could change daily as far as spaces/newlines go. Say for example I
have something like this:
$str=EOF;
html
body
pHello this is juts an example/p
p!---begin---a href=nowhere.comblahahahaha/a
/pa href=
http://www.somewhere.com;
ok, well I ended up dropping the regex and splitting the strings and
re-building them after being inspired by another thread.
so,
my $str=text !---begin---
text to
be replac
ed!---end---;
my $repl=replacement text;
my ($a,$b)=split('!---begin---',$str);
my ($c,$d)=split('!---end---',$b);