Hi, All
Following has been done, sorry for inconvenience.
*For String only*
if alphaString =~ (/[0-9]/) return false
*For Numeric Only*
if numericString =~ (/[a-z or A-Z]/) return false
*For Alpha Numeric*
if alphaNumericString =~ (/[a-z or A-Z]/) alphaNumericString =~ (/[0-9]/)
return
What about punctuatuon characters?
-- Brian Colfer
- Original Message -
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
To: wtr-general@rubyforge.org wtr-general@rubyforge.org
Sent: Tue Jun 26 02:23:57 2007
Subject: Re: [Wtr-general] Form Validation
Hi, All
Following has been done, sorry
Hi, All
I have to validate a form in the following way.
1- Validate Field length.
2- Validate Field Type (Character or Numeric or Alpha Numeric)
How can i validate the form in that way.
Thanks to all.
Kind Regards,
M.Imran
___
Wtr-general mailing