$+ helps a little:
#print "$1-$2-".($4 || $3) if /(\w+)\s(\w+)\s("([^"]+)"|(\w+))/; print "$1-$2-$+" if /(\w+)\s(\w+)\s("([^"]+)"|(\w+))/;
In reply to Re: Nested grouping or capturing inside capturing
by hbm
in thread Nested grouping or capturing inside capturing
by eddor1614
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |