Join Slack
Powered by
I needed to use javacast() for the split function....
# cfml-general
j
John Wilson
10/29/2022, 5:38 PM
I needed to use javacast() for the split function. Can someone tell me how to convert this back to a coldfusion array?
Copy code
javaCast("string", row).split(',(?=([^\"]*\"[^\"]*\")*[^\"]*$)')
a
Adam Cameron
10/29/2022, 5:54 PM
Appending it to an empty array will do it:
https://trycf.com/gist/57300c5efd155b58497bb2e952386e4a/lucee5?theme=monokai
💯 1
j
John Wilson
10/29/2022, 5:54 PM
You rock
a
Adam Cameron
10/29/2022, 5:54 PM
Fallen afoul of this before 😉
Adam Cameron
10/29/2022, 7:09 PM
https://blog.adamcameron.me/2022/10/cfml-addressing-confusion-around-arrays.html
🎯 1
2
Views
Open in Slack
Previous
Next