Elyon
Junior Member
Posts: 2
Registered: 10/10/2006
Member Is Offline
|
| posted on 10/10/2006 at 10:38 AM |
|
|
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...
|
|
|
tigra
Administrator
Posts: 2043
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 10/10/2006 at 10:47 AM |
|
|
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\.\-\']*$/,
|
|
|
Elyon
Junior Member
Posts: 2
Registered: 10/10/2006
Member Is Offline
|
| posted on 10/10/2006 at 10:49 AM |
|
|
Works...
Thanks..
|
|
|