View Single Post
Old 04-12-2007, 07:54 AM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,505
sde is on a distinguished road
when you put the "^" inside the brackets, that meanse NOT. so your expression would NOT match a-z, -, and '

try this:

/^[a-z\-\,\'](\,.*\,)$/

i'm not 100% on if all those characters need to be escaped, but that should at least get you on the right track.
__________________
Mike
sde is offline   Reply With Quote