• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

RegEx -Help.

Participant ,
Jan 08, 2011 Jan 08, 2011

Copy link to clipboard

Copied

Hi;

I'm trying to figure out how to write a quick regex to find and replace [or ignore] commas in the vaules of a comma separated list:

i.e:

"ONE","TWO","THREE" ...etc...

May have a record that looks like

"ONE",,"THREE,"this is, four"

so I can't use ," or ", as the delimiter & a comma can show up in the data fields ...

any ideas?

-thanks

-sean

TOPICS
Advanced techniques

Views

483

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Enthusiast , Jan 10, 2011 Jan 10, 2011

You might try looking at this function: http://www.cflib.org/udf/CSVtoArray from cflib.org.

Votes

Translate

Translate
LEGEND ,
Jan 08, 2011 Jan 08, 2011

Copy link to clipboard

Copied

If this is coming from a .csv file, try reading it with cfhttp instead of cffile.  Then you will have a query object to work with.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jan 10, 2011 Jan 10, 2011

Copy link to clipboard

Copied

You might try looking at this function: http://www.cflib.org/udf/CSVtoArray from cflib.org.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jan 10, 2011 Jan 10, 2011

Copy link to clipboard

Copied

LATEST

hey thanks - I never thought to look, at least I can pick that apart and see how they are doing it....

-thanks

-sean

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation