[ ]|[a-z0-9]{17}
Should do it...
That basically allows for a space, or for 17 alphanumeric characters.
-----Original Message-----
From: Rick Mason [mailto:[email protected]]
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:323344
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4