2

I need to remove the spaces and any apostrophes from the filename of my file that is uploaded. I have figured out how to remove the spaces but I am not sure how to remove the apostrophes. I am using coldfusion. Below is my code for removing the spaces. How should I modify this code to also remove any apostrophes. Thanks in advance for any help.

  <cfset mySpaceFreeVariable = ReReplace(filename, "[[:space:]]","","ALL")>
4

1 回答 1

3
<cfset mySpaceFreeVariable = ReReplace(filename, "[\s']","","ALL")>
于 2013-07-30T14:17:35.753 回答