<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 "&ensp;" 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, ",", "&ensp;")>
>
> Thanks,
> Mark
>
> 
______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.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

Reply via email to