How do I actually get p or BUG to be bound to $1if ($eval =~ /^(p|BUG)?\d+(\D.*)$/) { warn $eval; warn "$1{bugfix_number}$2"; } else { die "$eval could not be regularized"; }
In reply to How can I get regexp alternation to bind $1 by princepawn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |