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

LVL 14
RickEpnetAsked:
Who is Participating?
 
C4S-DTConnect With a Mentor Commented:
This will accept any character except 0-9
^[^0-9]+$
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.