Quantcast
Channel: Adobe Community : All Content - ColdFusion
Viewing all articles
Browse latest Browse all 5979

ReplaceNoCase and REreplaceNoCase not working

$
0
0

Hello, all,

 

I've got a query flattened into a JSON string.  The query does contain double-quotes in some of the data, so I try to strip that out.  I'm replacing " with "

 

HOWEVER, the action page is using regex replacement to convert back to ", but it isn't completely working.

 

I've tried the following with ReplaceNoCase() and REReplaceNoCase() - neither is working.

 

<cfset form.XLJson = ReplaceNoCase(form.XLJson,'&quot;','"','ALL') />

 

The above code will take:

Smith, John "Johnny"

turn it into

Smith, John &quot;Johnny&quot;

BUT, what it changes back to is

Smith, John ";Johnny";

 

Am I missing something, here?

 

V/r,

 

^_^


Viewing all articles
Browse latest Browse all 5979

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>