Walter Lee Davis pisze: > Isn't that just /(V30000)|(B47242)|(V54000)/ ?? > No, I think it is not.
I think it should be /^(V30000)|(B47242)|(V54000)$/ cause the 'bleblabliV30000anything' should not match ;) seriously, Michael: I think you should use /^[A-Z]\d{5}$/, which will match a sequence containing a Uppercase letter at start, and exactly 5 digits, and it will end at this point. If you need unknown number of digits use either \d+ (at lest one digit), or \d* (zero or more digits). Regards, SWilk --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---