apologies i posted the wrong current set: the correct one is: <cfset currentSet = "(?![0-9A-Za-z])">
thanks > hi > > sorry for the basic question but i haven't been able to find my answer > anywhere else > > i am using regular expressions and searching a string with negative > lookahead and it if it doesn't find any occurrence in the regular > expression then it is returning the length of the string +1 instead of > the usual 0, is it meant to do this or do i have a problem somewhere: > > <cfset currentString = "Apple"> > <cfset currentSet = "(?=[\^;'/\\&><""\r\s-])"> > <cfreturn refindnocase(currentSet,currentString)> > > returning 6 instead of 0 > > thanks > > richard ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:313450 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

