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.
>
> ---
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
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
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
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
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
6 matches
Mail list logo