title: coldfusion Rereplace function
body: <p>I am using the following ColdFusion REreplace function</p>
  
  <p><code>&lt;cfset variables.sAddress = #left(trim(REReplace(arguments.address, "[^-0-9a-zA-Z_/-/']", "", "ALL")),50)#/&gt;</code>  where arguments.address is coming from the form.</p>
  
  <p>I am using the rereplace function to remove the special characters, which is working fine on other pages, but in this case before using the rereplace function it is first converting the special characters into their html equivalent and then applying the rereplace function.</p>
  
  <p>so if i pass <code>'test&amp;test'</code> as the arguments.address1, the result i am getting is <code>'testamptest'</code>.</p>