On Tue, 02 May 2000 15:24:54 EDT, Bill Jones wrote: :Is there away to combine these? : :/^[ ]*[+-]?\d+[ ]*$/; : :/^[ ]*[+-]?\d*\.?\d*([eE][+-]?\d+)?[ ]*$/; : If, by "combine", you mean "replace with something that matches everything that _either_ regex matches," then /^[ ]*[+-]?\d*\.?\d*([eE][+-]?\d+)?[ ]*$/; (Yes, that's the second regex, unchanged.) BTW, you probably wanted " ", or "[ \t]", (or maybe even "\s") where you have "[ ]". Also, the second regex matches " ", which may be too permissive. Michael ==== Want to unsubscribe from Fun With Perl? Well, if you insist... ==== Send email to <fwp-request@technofile.org> with message _body_ ==== unsubscribe