Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Modifying The Alpha Verification To Include '
Elyon
Junior Member

Posts: 2
Registered: 10/10/2006
Member Is Offline
posted on 10/10/2006 at 10:38 AM Reply With Quote
Modifying The Alpha Verification To Include '


I know this is an easy one but here goes...

How do I modify the alpha verifcation for names..

'alpha' : /^[a-zA-Z.-]*$/,

I'm getting names like: Jon'Luke and La'Fontaine.

In other words I need to add the ' as a valid symbol....

Thanks...
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 10/10/2006 at 10:47 AM Reply With Quote

I'm not sure you want the dot inside the bracket. The dot represents any symbol. If you want to allow actual "." then put it with the slash. For the apostrophe add \' before closing brackets.

'name' : /^[a-zA-Z\.\-\']*$/,
View User's Profile View All Posts By User U2U Member
Elyon
Junior Member

Posts: 2
Registered: 10/10/2006
Member Is Offline
posted on 10/10/2006 at 10:49 AM Reply With Quote

Works...

Thanks..
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Product Demos
Registration Form Validation
Login Form Validation
Multiple Forms Validation
Product Documentation Documentation
Documenation Page
Change Log
Validators Comparison Table
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004