Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Reg Ex exercise

by thundergnat (Deacon)
on Dec 05, 2012 at 16:49 UTC ( #1007332=note: print w/replies, xml ) Need Help??


in reply to Re: Reg Ex exercise
in thread Reg Ex exercise

Um... You need to escape that full stop.

>perl -e "print 'match' if '1234X789' =~ /^(-?)(\d+.)?\d+$/"
match

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1007332]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2016-12-03 10:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (55 votes). Check out past polls.