Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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?
[choroba]: 'twas just a hickup, probably

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2017-01-20 08:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (174 votes). Check out past polls.