Monthly Archives: July 2016

Strip trailing, or repeated, delimiters in a CF list

Found a helpful trick at http://stackoverflow.com/questions/182455/coldfusion-and-trailing-comma – if you want to clean up a list in ColdFusion, take advantage of the fact that CF list functions ignore empty elements. ListChangeDelims() consequently strips off that last “element”. var cleanList = ListChangeDelims(DirtyList, “,”, “,”); For example, I often need this when building an url or file path, […]