It helps us more if you provide the data too, but as it stands you should only need to add
before you print the matched line.$line =~ s/^$pattern//;
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
In reply to Re: Pattern finding and printing with regex
by jeffa
in thread Pattern finding and printing with regex
by kernelpanic@thedisco
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |