ListItemTrim()
Removes all the white space surrounding each element, returning back the new list
ListItemTrim( list=string, delimiters=string, includeEmptyFields=boolean );
Returns: String
Examples
//Simple Example
writeoutput(listItemTrim("Susi , LAS ,,lucee,,,test,,"));
//Member Function
strList=",I, , love,lucee ,,";
writeDump(strList.listItemTrim());
See also
- Lists
- Strings
- ListChangeDelims()
- string.listItemTrim()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)