Than how about replace '#' to '##' with <cfset thatVar =
#replace('mso-ansi-language:#0400',chr(35),'##','all')#> Again is not possible.
The HTML string 'mso-ansi-language:#0499' used as example is auto-originated
by another program and has to be used as-it-is later on in a replace() function
pattern. Obviously it is obvious, but I cannot see the solution. :-) Thanx
for helping. ---------- Just in case: the real variable looks like this:
<cfset replacepattern ='<!--[if gte mso 10]> <style> /* Style Definitions */
table.MsoNormalTable {mso-style-name:'Table Normal'; mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:'';
mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in;
mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt;
font-family:'Times New Roman'; mso-ansi-language:#0400;
mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]-->')>
If I eliminate the '#' or double it to '##' manually, the variable is declared
without error.