
August 28th, 2008, 01:03 PM
|
|
Registered User
|
|
Join Date: Aug 2008
Posts: 6
Time spent in forums: 2 h 12 m 25 sec
Reputation Power: 0
|
|
|
Regular expression problem
Hi all,
I am trying to create a regular expression that will allow
lower/upper letter, numbers, - , _ and ' (apostrophe) and spaces
This is what I have: /^[a-zA-Z0-9-_]+$/
when I try to add ' to it I get javascript error. the above doesn't work too It gives me a failed condition even when I only have letters and spaces in the field.
Thanks
|