Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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


Comment on Re^2: Reg Ex exercise

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2014-08-27 10:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (236 votes), past polls