[Proto-Scripty] Re: validation for alphanumeric field/sequence

2009-03-02 Thread Eric
Hi, On Feb 4, 10:50 pm, Michael mich...@vermontsnows.com wrote: Hi - I want to use this validation for an alphanumeric field. I apologize for beating a dead horse, but since the list of possible choices is closed, why don't you just use a SELECT element? :o) Anyways, it was very interesting

[Proto-Scripty] Re: validation for alphanumeric field/sequence

2009-02-09 Thread ColinFine
Wow. I'm delighted to have provoked such an interesting and informative discussion. Somehow *just* falsy/truthy return values seem sloppy to me. It doesn't take much effort to prepend result with `!!` and document function's return value as that of type Boolean. I guess that's my

[Proto-Scripty] Re: validation for alphanumeric field/sequence

2009-02-06 Thread kangax
On Feb 6, 7:36 am, ColinFine colin.f...@pace.com wrote: On Feb 5, 9:29 pm, Michael mich...@vermontsnows.com wrote: Thank you all - Kangax's low profile technique works like a champ. Walter Lee: Regular expressions hurt my head. I will get there one day. The actual thing I am working on

[Proto-Scripty] Re: validation for alphanumeric field/sequence

2009-02-06 Thread RobG
On Feb 7, 12:21 am, kangax kan...@gmail.com wrote: On Feb 6, 7:36 am, ColinFine colin.f...@pace.com wrote: On Feb 5, 9:29 pm, Michael mich...@vermontsnows.com wrote: Thank you all - Kangax's low profile technique works like a champ. Walter Lee: Regular expressions hurt my head. I

[Proto-Scripty] Re: validation for alphanumeric field/sequence

2009-02-05 Thread david
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

[Proto-Scripty] Re: validation for alphanumeric field/sequence

2009-02-05 Thread Michael
I need V3 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

[Proto-Scripty] Re: validation for alphanumeric field/sequence

2009-02-05 Thread Walter Lee Davis
Isn't that just /(V3)|(B47242)|(V54000)/ ?? Walter On Feb 5, 2009, at 8:37 AM, Michael wrote: V3 and B47242 and V54000 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group.

[Proto-Scripty] Re: validation for alphanumeric field/sequence

2009-02-05 Thread SWilk
Walter Lee Davis pisze: Isn't that just /(V3)|(B47242)|(V54000)/ ?? No, I think it is not. I think it should be /^(V3)|(B47242)|(V54000)$/ cause the 'bleblabliV3anything' should not match ;) seriously, Michael: I think you should use /^[A-Z]\d{5}$/, which will match a sequence

[Proto-Scripty] Re: validation for alphanumeric field/sequence

2009-02-05 Thread kangax
On Feb 5, 11:44 am, SWilk wilkola...@gmail.com wrote: Walter Lee Davis pisze: Isn't that just /(V3)|(B47242)|(V54000)/ ?? No, I think it is not. I think it should be /^(V3)|(B47242)|(V54000)$/ cause the 'bleblabliV3anything' should not match ;) There's no need for so many

[Proto-Scripty] Re: validation for alphanumeric field/sequence

2009-02-05 Thread Michael
Thank you all - Kangax's low profile technique works like a champ. Walter Lee: Regular expressions hurt my head. I will get there one day. The actual thing I am working on take about 100 alpha/numeric sequences of no real logical order... so making it in regular expression would take far longer