more useful options | |
PerlMonks |
Re^2: Grabbing numbers from a URLby BillKSmith (Monsignor) |
on Jul 09, 2017 at 13:20 UTC ( [id://1194611]=note: print w/replies, xml ) | Need Help?? |
Your final comment brings up a bigger problem with the specification. If the current four-digit format allows more than four digits (only the last four of which are used), without more information, it will be impossible to distinguish between this case and the new five-digit numbers. All solutions so far assume that if there are at least five digits, all five are part of the number. I like your solution because it extends this assumption to any number of digits.
Bill
In Section
Seekers of Perl Wisdom
|
|