This is awesome - I am totally almost getting this! What if my Coupon Code started at some number mid sequence - like everything greater then
C32456 would be valid... On Dec 16, 8:45 am, kangax <kan...@gmail.com> wrote: > On Dec 16, 5:17 am, SWilk <wilkola...@gmail.com> wrote: > > > Michael wrote: > > > This script is right up my alley - thanks a lot - > > > > I am trying to validate a field that has a letter/number combo - it > > > must be between C400 and C700 OR D300 and D999 > > > [...] > > > try this regexp: > > ^((C[4-6]\d{2})|(D[3-9]\d{2})|(C700))$ > > Or a bit shorter: > ^(C([4-6]\d\d|700)|D[3-9]\d\d)$ > > [...] > > > Regards, > > SWilk > > -- > kangax --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---