Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^5: Match multiple number

by dbuckhal (Chaplain)
on Aug 19, 2018 at 14:10 UTC ( [id://1220634]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Match multiple number
in thread Match multiple number

*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,

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1220634]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2024-03-29 07:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found