So I have this data in a column, obviously it has ...
# cfml-general
g
So I have this data in a column, obviously it has some carriage return line feeds in it. I can't figure out how to change the delimiters to "|". Administrative Staff Assistants Hygienists Dental Students Guests Dentists
#listLen(x, "chr(10)chr(13)")# only returns 2.
d
column.listToArray( chr(10) ).toList("|")
but you should output the column text and see what the actual delimiters are.
m
g
#listChangeDelims(x, ',', '#chr(10)##chr(13)#')#
#listLen(x, "#chr(10)##chr(13)#")# gave me 6
So I think this should work.
I need comma not pipe.
m
Copy code
newList = ArrayToList(column.split("\R"))
The split is doing a java regular expression split and the \R is all possible EOL values
👍🏾 1
👍 2