You can use non-capturing groups:
s/(?:some|stuff)(?:more|stuff).*?(what I really want here)/$1/;
In reply to Re: Grouping regular expressions
by friedo
in thread Grouping regular expressions
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |