*click!* Got it... For my attempt, adding the \A assertion to match my \z should fix allowing invalid values.
if $n =~ /\A\d{0,}[05]\z/
But, I think I like the [0-9]*[05] based solutions better...
Thanks,
In reply to Re^5: Match multiple number
by dbuckhal
in thread Match multiple number
by IB2017
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |