[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] More Perl Starmapping




> Your regex can be reduced to /[A-Za-z\s]/ with the same functionality.  But
> that still allows things like '!@#$%^&*()_+', which isn't really numeric.

True, but the input values can be negative, or have a "+" in them, so 
"pure" numeric values AREN'T what I want.

> A simple regex that just enforces characters would be something like
> /[-+\d.e]/.

Thanks!

> The most reliable method for verifying that a value is numeric is trapping
> warnings, but that may be more than you need.

Uh, yah, Uh-huh... ;-)



# Fungal Parataxonomy                   Mycology Information (Mycoinfo)
# Webmaster, Staff Writer      **The World's First Mycology E-Journal**   
# <mailto:webmaster@mycoinfo.com>            <http://www.mycoinfo.com/> 
#
# First they ignore you. Then they laugh at you. Then they fight you.
# Then you win.                                     --Mohandas Gandhi


===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org