in reply to only want numerics in field
But I think, if I look to your code, you seem to have more than just a decimal number inside. You might also take a look to modules like Regexp::Common. Most of us will make a mistake here or their when build Regexps, the good thing common things is that we aren't the first one doing them :-)/^[+-]\d+(?:\.\d+)?$/ # or if you want either no decimals or exactly 2 decimals /^[+-]\d+(?:\.\d\d)?$/
Greetings,
Janek Schleicher
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: only want numerics in field
by Limbic~Region (Chancellor) on Apr 21, 2014 at 16:09 UTC | |
by bigj (Monk) on Apr 21, 2014 at 16:37 UTC | |
|
Re^2: only want numerics in field
by newby2perl (Initiate) on Apr 21, 2014 at 16:40 UTC | |
by newby2perl (Initiate) on Apr 21, 2014 at 16:48 UTC |