if you are parsing in in cf, then just treat it as multi-delimiter list: <cfset latlng = "(38.780144, -104.815308)"> <cfset lat = listfirst(latlng, "(), ")> <cfset lng = listlast(latlng, "(), ")>
Azadi Saryev On 27/01/2010 13:36, Les Irvin wrote: > I'm rather lousy at the whole string parsing thing... how would I > separate this example response from the google geocoder api into two > values? Problem (for me) is that one cannot count on a set number of > digits returned after the decimal. > > (38.780144, -104.815308) > > Any help would be greatly appreciated. > Les > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330164 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4