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]. On Mon, Oct 6, 2008 at 7:53 AM, Richard White wrote: > 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:313463 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

