Keep It Simple, Stupid | |
PerlMonks |
Re: Regex to check for very large negative numbersby BillKSmith (Monsignor) |
on Feb 21, 2013 at 23:01 UTC ( [id://1020018]=note: print w/replies, xml ) | Need Help?? |
I recommend a regex that tests for a valid pattern (as defined by your device documentation) anchored at the start of the string. (e.g. /^-?\d{5,}\.\d*/)
Bill
In Section
Seekers of Perl Wisdom
|
|