如何从字符串中删除空格和其他空白字符。我不想只删除字符串末尾的空格,而是删除整个字符串的空格。
您可以使用正则表达式
<cfset str = reReplace(str, "[[:space:]]", "", "ALL") />