Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: only want numerics in field

by Limbic~Region (Chancellor)
on Apr 21, 2014 at 16:09 UTC ( #1083037=note: print w/ replies, xml ) Need Help??


in reply to Re: only want numerics in field
in thread only want numerics in field

bigj,
Your regex will indicate that .25 is not a number. You also require a leading sign [+-]. I realize that defintion of "what is numeric" is sorely lacking by the OP but I wanted to point this out to anyone who may come along later.

Cheers - L~R


Comment on Re^2: only want numerics in field
Select or Download Code
Replies are listed 'Best First'.
Re^3: only want numerics in field
by bigj (Monk) on Apr 21, 2014 at 16:37 UTC
    Just one more reason to not reinvent the wheel :-) You're of course right.

    Greetings,
    Janek Schleicher

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (13)
As of 2015-07-30 11:47 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 (271 votes), past polls