Link to home
Start Free TrialLog in
Avatar of RickEpnet
RickEpnetFlag for United States of America

asked on

Coldfusion regular expression no numbers

I am trying to do a regular expression that will not allow numbers. The following code does that but it also see dashes, hyphens etc as numbers too.  I want to allow everything except number is there a way to do that or do I need to specify each thing I want to allow.

If I need to specify each thing I want to allow that is OK I just need to know how to do that.

                      Thanks!! :-)


<cfinput type="text" name="fname" message="Please no Numbers in Name Fields" pattern="^[A-Za-z .,]+$" validate="regular_expression" tabindex="1" value="#FNAME#" size="20" maxlength="50">

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of C4S-DT
C4S-DT
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial