Hi - I want to use this validation for an alphanumeric field.

return Validation.get('IsEmpty').test(v) ||  !/\W/.test(v)

But I only want the field to be valid if the sequence is V30000 or
B40009 or J50008 (for example). It will be valid only for a few letter/
number sequences. I can't really wrap my mind around the regular
expressions right now. What would the syntax be just to stub in a few
sequences that would validate?

Thanks for all your help.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to