Adobe Community
All community
This category
This board
Knowledge base
Users
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results forÂ
ShowÂ
 onlyÂ
|
Search instead forÂ
Did you mean:Â
Global community
Language:
Deutsch
English
Español
Français
Português
日本語コミュニティ
Dedicated community for Japanese speakers
í•œêµ ì»¤ë®¤ë‹ˆí‹°
Dedicated community for Korean speakers
Sign In
Exit
Home
ColdFusion
Discussions
Regular Expression - Parse CSV
Home
ColdFusion
Discussions
Regular Expression - Parse CSV
0
Upvote
Regular Expression - Parse CSV
Guest
/t5/coldfusion-discussions/regular-expression-parse-csv/td-p/977045
Aug 24, 2006
Aug 24, 2006
Copy link to clipboard
Copied
"Q-Accept, Other Employment"
I need to remove the "," from the above string. The CSV File I have includes commas inside quotetaion marks, I need to remove the comma and leave the string intact. Any help with te rereplace format would help
Thanks
Andy
TOPICS
Advanced techniques
Views
170
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
2 Replies
2
Jump to latest reply
Guest
AUTHOR
/t5/coldfusion-discussions/regular-expression-parse-csv/m-p/977046#M89143
Aug 26, 2006
Aug 26, 2006
Copy link to clipboard
Copied
Try this: <cfset string = "Q-Accept, Other Employment" />
<cfset modifiedString = ReReplace(string, '["]', '', 'ALL') />
Votes
0
Upvote
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Guest
AUTHOR
/t5/coldfusion-discussions/regular-expression-parse-csv/m-p/977047#M89144
Aug 30, 2006
Aug 30, 2006
Copy link to clipboard
Copied
LATEST
I think the previous poster may have a typo in the example code.
Try changing this...
<cfset modifiedString = ReReplace(string, '["]', '', 'ALL') />
to this...
<cfset modifiedString = ReReplace(string, ',', '', 'ALL') />
Good luck!
Votes
0
Upvote
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Post Reply
Preview
Exit Preview
never-displayed
You must be signed in to add attachments
never-displayed
Â
Resources
Documentation
ColdFusion User Guide