While I think this is what you're looking for, I'm just guessing at what the right answer is if there is no match.my $length = $x =~ /(\d+)$/ ? length $1 : 0;
In reply to Re: Length of first captured match
by Tanktalus
in thread Length of first captured match
by QM
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |