Thanx Chris.

Using your sample fails when user enters A6 or B6. Please look my code used
for client JS validation?

^([Aa]{1}[1-3]{0,1}[B-Eb-e]{0,1}|[B-Eb-e]{1})

Using RegEx Coach application works fine allowing only the correct chars.
But when inserting in CF template fails.

What's wrong?

Cheers

MD


2006/3/6, CF <[EMAIL PROTECTED]>:
>
> Hi Michael.
>
> > sorry for OT but I need your help RegEx gurus.
>
> As long as it's CF related, it is not OT. Just my $0.02 ;-)
>
> > In my form
> users can
> > insert a field with this pattern:
> >
> > A|1-3|-B|C|D
> > In resume can insert ?
> > A or
> > A1B or
> > A2B or
> > A3B or
> > A1C, A2C, A3C, A1D, A2D, A3D, A1E, A2E, A3E, AB, AC, AD, B, C, D
> >
> > Validating only letters work fine but that all combinations fail.
>
> OK. Start with letter A, followed bei 0 or 1 occurence of 1 though 3,
> followed by 0 or 1 occurence of B through D. Correct?
>
> Then the following reg exp. should do:
> "A([123]?)([BCD]?)"
>
> Best,
>
> Chris
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234248
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to