You might substitue away anything you match, i.e. instead of
($status) = $folder =~ m/(FINAL|DRAFT)/;
use
$folder =~ s/(FINAL|DRAFT)//; $status=$1;
In reply to Re: Grab everything not matched by regexp
by jethro
in thread Grab everything not matched by regexp
by Kerplunk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |