How about this:
<cfelseif reFindNoCase('^[a-z]{1,2}[0-9]{5,11}$',recAry[1])>
Spike
Ian Skinner wrote:
> Would somebody (or several somebody's) mind tighting up this logic.
>
> <!--- Else If: the 1st field of the record is between 6 and 12 characters
> long, begins with 1 or 2 letters and ends with 5 to 11 digits, then the value
> is an Eye readable Codabar format. --->
>
> <cfelseif len(trim(recAry[1])) GTE 6 AND len(trim(recAry[1])) LTE 12 AND
> 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 Programmer
> BloodSource
> www.BloodSource.org
> Sacramento, CA
>
> "C code. C code run. Run code run. Please!"
> - Cynthia Dunning
>
> Confidentiality Notice: This message including any
> attachments is for the sole use of the intended
> recipient(s) and may contain confidential and privileged
> information. Any unauthorized review, use, disclosure or
> distribution is prohibited. If you are not the
> intended recipient, please contact the sender and
> delete any copies of this message.
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application
http://www.houseoffusion.com/banners/view.cfm?bannerid=48
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:195444
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54