Andy,

I jumped the gun a little too quickly.  Neither yours nor Ben's works.  Your
code worked fine when I was just typing in numbers for a quick test.

Once I started testing with actual VIN numbers it failed.  It isn't counting
the letters in the total count.  So 12345678901234567 succeeds but
1M345678901234567 fails.

Any suggestions?


Rick

On Wed, Jun 10, 2009 at 10:52 AM, Andy Matthews <li...@commadelimited.com>wrote:

>
> [ ]|[a-z0-9]{17}
>
> Should do it...
>
> That basically allows for a space, or for 17 alphanumeric characters.
>
> -----Original Message-----
> From: Rick Mason [mailto:rhma...@gmail.com]
> Sent: Wednesday, June 10, 2009 9:50 AM
> To: cf-talk
> Subject: Simple regex question
>
>
> I'm in need of some regex help.  I am working with a cfinput and I need a
> pattern for regex validation that does the following:
>
> Field can be blank but if filled out has to be exactly 17 characters which
> are a combination of letters and numbers (VIN number)
>
> Know this is simple but Google seems to be failing me this morning.
>
> Thanks,
>
> Rick
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:323358
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to