in reply to Grab everything not matched by regexp
You might substitue away anything you match, i.e. instead of
($status) = $folder =~ m/(FINAL|DRAFT)/;
use
$folder =~ s/(FINAL|DRAFT)//; $status=$1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Grab everything not matched by regexp
by Kerplunk (Acolyte) on Feb 23, 2010 at 14:03 UTC |