in reply to Re^2: using lookaround assertions to grab info
in thread using lookaround assertions to grab info
my $section = ''; foreach (@m) { if (/^\s*([\w\s]*?)\s*:/ && $1) { #if we matched and we captured a s +ection label $section = $1; } if ($section eq '...') { ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: using lookaround assertions to grab info
by ryantate (Friar) on Jun 03, 2004 at 21:57 UTC | |
by Ven'Tatsu (Deacon) on Jun 03, 2004 at 22:23 UTC |