Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2016-10-01 22:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (8 votes). Check out past polls.