> listrest(listlast(thestring, "."), "/\") should give you 'var1/var2/var3/var4'
This seems to be working. Thanks for the assist. Now I'll share the results. What I wanted to do was break any url containing obfuscated vars into into elements I could work with for queries, etc. This now seems to be working to do just that, regardless of the URL structure. Now I can use urls like ... http://mypage.cfm/var1/var2/var3 instead of urls like http://mypage.cfm?var1=value1&var2=value2&var3=value3 Much better for SEO. <cfset url_vars="#listrest(listlast(cgi.REQUEST_URI, "."), "/\")#" /> <!--- strips the variables obfuscated as '/' delmited values from the URI string ---> <cfset url_var_count=#listlen(url_vars, "/")#> <!--- counts the number of variables ---> <cfif url_var_count gt 0> <cfloop from=1 to=#url_var_count# index=i> <cfset "url_var#i#"=#listGetAt(url_vars, i, "/")#> <!--- extracts variables and assigns each a numbered value 'url_varX' ---> </cfloop> </cfif> <!--- below is only used to see output list of created variables; not really needed to use the variables ---> <cfif url_var_count gt 0> <cfoutput> <cfloop from=1 to=#url_var_count# index=i> Variable#i#=#evaluate("url_var#i#")#<br /> </cfloop> </cfoutput> <cfelse> No / delimited variables found in URL string </cfif> Robert B. Harrison Director of Interactive Services Austin & Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 P : 631.231.6600 Ext. 119 F : 631.434.7022 http://www.austin-williams.com Great advertising can't be either/or. It must be &. Plug in to our blog: A&W Unplugged http://www.austin-williams.com/unplugged ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339817 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm