I need V30000 and B47242 and V54000 to be valid. Any other sequence would give the error message.
On Feb 5, 7:02 am, david <david.brill...@gmail.com> wrote: > Hi Michael, > > Do you have any restriction, for the valid number sequence, because, > we must create any regexp for a precise need. > So what is you're EXACT need? > > -- > david > > On 4 fév, 22:50, Michael <mich...@vermontsnows.com> wrote: > > > 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 -~----------~----~----~----~------~----~------~--~---