ok thanks matt, thanks for the tip as well richard
>It is correctly returning a value of 6. Apple is 5 characters in length. >While the length of the string is 5, the way the expression is currently >written, it's going to find the first spot that is not [0-9A-Za-z], which is >6. > >As an aside, [0-9A-Za-z] can be shortened to [\w]. > > > > >> apologies i posted the wrong current set: the correct one is: >> >> <cfset currentSet = "(?![0-9A-Za-z])"> >> >> thanks >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313471 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

