RE: Tighten up this logic.

2005-02-18 Thread Michael Dinowitz
The regex alone would work if you anchor it. '^[a-z]{1,2}[0-9]{5,11}$' > Would somebody (or several somebody's) mind tighting up this logic. > > > > refind("[A-Z]{1,2}[0-9]{5,11}",Ucase(trim(recAry[1])))> > > This [d4238616c] value should not have gotten through, but it did. > > ---

RE: Tighten up this logic.

2005-02-18 Thread Adrian Lynch
That should be fine with just the addition of checking for the start and end of line. If you excuse me for a minute while I whip out my Regular Expressions in 10 minutes book... it might be this ^[A-Z]{1,2}[0-9]{5,11}$ Does that work? Ade -Original Message- From: Ian Skinner [mailt

Re: Tighten up this logic.

2005-02-18 Thread Jochem van Dieten
Michael Dinowitz wrote: > The regex alone would work if you anchor it. > '^[a-z]{1,2}[0-9]{5,11}$' That would allow AA01234567890, which is 13 characters long. Jochem ~| Logware (www.logware.us): a new and convenient web-based

Re: Tighten up this logic.

2005-02-18 Thread Jochem van Dieten
Ian Skinner wrote: > Would somebody (or several somebody's) mind tighting up this logic. > > > > refind("[A-Z]{1,2}[0-9]{5,11}",Ucase(trim(recAry[1])))> Jochem ~| Discover CFTicket - The leading ColdFusion Help Desk and Tro

Re: Tighten up this logic.

2005-02-18 Thread Spike
How about this: Spike Ian Skinner wrote: > Would somebody (or several somebody's) mind tighting up this logic. > > > > refind("[A-Z]{1,2}[0-9]{5,11}",Ucase(trim(recAry[1])))> > > This [d4238616c] value should not have gotten through, but it did. > > -- > Ian Skinner > Web Prog

RE: Tighten up this logic.

2005-02-18 Thread Ian Skinner
www.BloodSource.org Sacramento, CA "C code. C code run. Run code run. Please!" - Cynthia Dunning -Original Message- From: Jochem van Dieten [mailto:[EMAIL PROTECTED] Sent: Friday, February 18, 2005 11:05 AM ....To: CF-Talk ....Subject: Re: Tighten up this log