Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Regex to check for very large negative numbers

by BillKSmith (Deacon)
on Feb 21, 2013 at 23:01 UTC ( #1020018=note: print w/ replies, xml ) Need Help??


in reply to Regex to check for very large negative numbers

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


Comment on Re: Regex to check for very large negative numbers
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1020018]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (10)
As of 2015-07-30 03:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (269 votes), past polls