On Fri, 1 Feb 2002, Al Hospers wrote:

> I need a regular expression that will only allow a variable to contain
> digits. it should fail if there is anything else in the variable:
> dollar signs, commas, dots, alphas, spaces, quotes etc. I thought the
> following would work, I am obviously incorrect.
>
>  return 1 unless ($Bid_Amount =~ [/d/] );

Your regular expression should be /[0-9]/

-- Brett

                                          http://www.chapelperilous.net/
------------------------------------------------------------------------
About all some men accomplish in life is to send a son to Harvard.


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

Reply via email to