You can probably use the regex match operator "=~":
if (my @match = $text =~ /([A-Za-z\s]*)([0-9]{1,2})[%])/) { # do stuff here. }
In reply to Re: Capture groups
by Joost
in thread Capture groups
by legend
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |