LoginSignup
0

More than 5 years have passed since last update.

【Coldfusion】リストから余分なカンマを削除

Last updated at Posted at 2016-12-05

リストから余分なカンマを削除するには
listToArrayで一旦配列に変換してarrayToListでリストに戻す

<cfscript>
str = "abc,,,efg,gg,,,,";
WriteOutput(arrayToList(listToArray(str)));
// abc,efg,gg とカンマが取れる
</cfscript>

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0