in reply to RexEx help...need to extract the following...:)
If it's two lines as shown,my ($source_cont) = $CtRet =~ /^source cont=(.*)/m or die("Didn't find source cont\n");
my ($source_cont) = $CtRet =~ /^source cont=("[^"]*")/m or die("Didn't find source cont\n"); $source_cont =~ s/\n/ /g;
Updated: Oops! Added missing m modifier.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: RexEx help...need to extract the following...:)
by dani_cv (Acolyte) on Sep 10, 2007 at 13:00 UTC |