That worked, THANK YOU! Thanks, Mark
-----Original Message----- From: Douglas Brown [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 14, 2002 5:05 PM To: CF-Talk Subject: Re: Creating a list with comma delimits rather than spaces <CFSET testlist = "ssl_result=0 ssl_result_message=APPROVED ssl_txn_id=0123456789 ssl_approval_code=023456 ssl_cvv2_response=P ssl_avs_response=Y ssl_transaction_type=SALE ssl_card_number=4000000000000000"> <CFSET testlist = REREPLACE(testlist, "[[:space:]]", ",", "ALL")> <cfoutput>#testlist#</cfoutput> Douglas Brown Email: [EMAIL PROTECTED] ----- Original Message ----- From: "Mark Leder" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Sunday, July 14, 2002 1:20 PM Subject: Creating a list with comma delimits rather than spaces > This one I've really been pulling my hair out on. > > A CC processing routine returns via CFHTTP.Filecontent the following > string: > > ssl_result=0 ssl_result_message=APPROVED ssl_txn_id=0123456789 > ssl_approval_code=023456 ssl_cvv2_response=P ssl_avs_response=Y > ssl_transaction_type=SALE ssl_card_number=4000000000000000 > > I want to convert this string so that the space prior to each "ssl" > becomes a comma, instead of a space. That will allow me to use the > GetListAt function and then parse out individual set commands. > > I've tried this to no avail, having substituted a number of > expressions in the " " field. I'm not doing something right, or > should I be using something else entirely to achieve what I need. > > <CFSET testlist = "ssl_result=0 ssl_result_message=APPROVED > ssl_txn_id=0123456789 ssl_approval_code=023456 ssl_cvv2_response=P > ssl_avs_response=Y ssl_transaction_type=SALE > ssl_card_number=4000000000000000"> > > <CFSET testlist = ListChangeDelims(testlist, ",", " ")> > > Thanks, > Mark > > ______________________________________________________________________ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

