>>>>> "Al" == Al Hospers <[EMAIL PROTECTED]> writes:

Al> thanks to everyone who responded. it seems that Bob's
Al>  /^\d+$/

Al> works the best overall for this situation.

Beware that this also matches "123\n".  A solution that rejects /\D/
will be faster and more accurate and easier to type than a solution
that accepts your regex.

So be careful who you listen to. :)

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to