The script wasn't meant to give you a regexp to replace the commas. It does the entire job of creating the query and takes the " as a qualifier into consideration. Replace your script by mine and it should work.

-----Oorspronkelijk bericht-----
Van: ColdFusion Programmer [mailto:[EMAIL PROTECTED]
Verzonden: wo 8/10/2003 17:32
Aan: CF-Talk
CC:
Onderwerp: Re:Looping through a list, setting each listItem to a column


I've tried that and it does not work. Here is my code

<cfscript>
myList = '2003/09/09 14:49:05, "TestUser1", "/Doc/News/Budgeting,Forecasting & Reporting.doc", "OK"';
myList = REReplace(myList, '^[[:space:]]*([^,]*|"([^"]|"")*")[[:space:]]*(,|$)','');
</cfscript>
<cfoutput>#myList#</cfoutput>

>This should do it in CF using regexp.
>There are probably custom tags that will read logs more efficiently
>though.



[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to