Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
CoachChip #1
Replacing " with Anything
I have tried and tried to replace " in a string with no luck. Any suggestions
would be most appreciated. The string is "D: "
Tried:
<cfset L2_displayvolume = #Trim(Replace('#L1_displayvolume#', "'Chr(34)'",
"XXXX", "All"))#>
and tried:
<cfset L2_displayvolume = #Replace('#L1_displayvolume#', "'Chr(34)'", "XXXX",
"All")#>
and tried:
<cfset L2_displayvolume = #Trim(Replace(L1_displayvolume, #Chr(34)#, "XXXX",
"All"))#>
and tried:
<cfset L_displayvolume = Trim(Replace('#L_displayvolume#', '#Chr(34)#',
"XXXX", "All"))>
and several others I lost count of.
CoachChip Guest
-
"Replacing Font" Bar Never Stops-Can't Save Changed Doc.
I'm replacing (2) letters ("n & d") in a PDF document. After I make the change and save the document, it keeps repeating the "Replacing Font" in the... -
Making "global" color changes to your designs; trouble replacing spot colors
I have a simple design that I'm working on that involves 2 Pantone spot colors (518 and 445), plus the usual black/paper/registration, etc. I have... -
Replacing "tellTarget" with "With" help
I am making a clip in which a random movieclip on the main timeline will play when you press a button. The actionscript works perfect when I use... -
Replacing hard drive on a 12" PowerBook G4?
I got asked to find a procedure on how to replace a hard drive in a 12" PowerBook, but that doesn't seem to be something Apple's listing as a... -
replacing part of the path for "tar"
Hi, I have to tar -xvf ebf100.30.tar, but when I do it it creates an ebf10030 directory inside the target directory and puts all the stuff... -
MikeDon #2
Re: Replacing " with Anything
Here is something from an application I did a while back
<cfset inputText = '"D"'>
<cfoutput>inputText = #inputText# </cfoutput>
<cfset outText = REReplaceNoCase(#inputText#,"([#chr(34)#]+)","?","ALL")>
<cfoutput>outText = #outtext# </cfoutput>
You can add other special characters into your your search string also e.g.
<cfset outText =
REReplaceNoCase(#inputText#,"([#chr(34)##chr(35)##chr(36)##chr(37)#]+)","?","ALL
")>
Mike :)
MikeDon Guest



Reply With Quote

