|
|
| There's more than one way to do things | |
| PerlMonks |
Re^2: Reg Ex exerciseby thundergnat (Deacon) |
| on Dec 05, 2012 at 16:49 UTC ( #1007332=note: print w/ replies, xml ) | Need Help?? |
|
Um... You need to escape that full stop. >perl -e "print 'match' if '1234X789' =~ /^(-?)(\d+.)?\d+$/" match
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||