Thanks shawn. Would that be as simple as doing this:

<cfif not
refind("^((4\d{3})|(5[1-5]\d{2})|(6011))-?\d{4}-?\d{4}-?\d{4}|3[4,7]\d{13}$",trim(form.card_number),1)>
        <!--- do something --->
    </cfif>

On Wed, Mar 10, 2010 at 11:12 AM, shawn gorrell <chees...@yahoo.com> wrote:

> ^((4\d{3})|(5[1-5]\d{2})|(6011))-?\d{4}-?\d{4}-?\d{4}|3[4,7]\d{13}$
>
> ------------------------------
> *From:* Dusty Hale <du...@climbonline.com>
> *To:* discussion@acfug.org
> *Sent:* Wed, March 10, 2010 11:05:47 AM
> *Subject:* [ACFUG Discuss] validating credit card numbers with CF
>
> Does anyone have a CF code snippet for validating credit cards numbers?
>
> Dusty
>
>
>
> -------------------------------------------------------------
> To unsubscribe from this list, manage your profile @
> http://www.acfug.org?fa=login.edituserform
>
> For more info, see http://www.acfug.org/mailinglists
> Archive @ http://www.mail-archive.com/discussion%40acfug.org/
> List hosted by FusionLink <http://www.fusionlink.com>
> -------------------------------------------------------------




-- 
Dusty Hale
Email: du...@dustyhale.com
Phone (Atlanta): 404.474.3754
Phone (Toll Free USA): 877.841.3370
Website: www.DustyHale.com

Reply via email to