Thanks for looking at it Barney, but your solution doesn't work.  Got any 
other ideas?

Regards,

Karl S.


At 11:27 AM 7/13/05, Barney wrote:
>I believe this will do it for double-quote delimited strings.  You'll
>have to run it multiple times to catch strings that have multiple
>hashes in them.  Then just flip the double quotes for single quotes
>and run it again to get the single-quote delimited strings. It might
>not be perfect, but it should give you a place to start.
>
>REreplace(myText, '"([^"]*)##([^"]*")', "\1####\2", "all")
>
>cheers,
>barneyb
>
>On 7/13/05, Karl <[EMAIL PROTECTED]> wrote:
> > I've got a compiled application that can be programmed to output ColdFusion
> > code along with its regular output, writing CF templates that later run
> > under CF 5.0.  However if any of its regular output contains pound signs,
> > CF throws an error when the template is executed.  Both these examples will
> > fail:
> >
> > <CFSCRIPT>
> >     Test = 'SKU # 1716-SY-367';
> > </CFSCRIPT>
> >
> > Or
> >
> > <CFSET Test = 'SKU # 1716-SY-367'>
> >
> >
> > What I would LIKE to do is use Replace or REReplace or somehow escape the
> > damn pound signs out of the strings more or less like so:
> >
> > <CFSET Test = #REplace("SKU # 1716-SY-367", "#Chr(35)#", "", "ALL")#>  --
> > but it doesn't work.
> >
> > (#Chr(35)# in the REplace function will replace say, DOUBLE pound signs in
> > the string, so at least that works)
> >
> > It is not possible to use the original compiled application to either
> > double up the pound signs or eliminate them, I have to work with the output
> > it gives me and it isn't very sophisticated.  I can use it to output any CF
> > code I want but I have to deal with the strings it gives me.  Your help
> > would be greatly appreciated.
> >
> > Regards,
> >
> > Karl S.


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.8.13/47 - Release Date: 7/12/05



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211843
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to