<cfif REFindNoCase("[^a-z0-9]", yourString)> Bad chars </cfif>
Adrian -----Original Message----- From: Mark Fuqua Sent: 04 February 2008 16:30 To: CF-Talk Subject: Help with Regular expressions I need to check and see that a form field has no special characters or spaces, only 0-9 and a-z. I'm guessing a regular expression could do that.? I need a regular expression to do a pattern matching test.if it has anything other than a-z or 0-9 it should fail. Thanks Mark Fuqua ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298065 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4