RE: Replace or REReplace function question.

2005-08-26 Thread Andy McShane
for doing it better? -Original Message- From: Barney Boisvert [mailto:[EMAIL PROTECTED] Sent: 25 August 2005 18:15 To: CF-Talk Subject: Re: Replace or REReplace function question. First, I'd recommend not using CF markup for the fields. Or at least don't require the CFOUTPUT t

Re: Replace or REReplace function question.

2005-08-25 Thread Claude Schneegans
>>Does anyone have any suggestions/ideas on the best way to replace my tags with the required text? Have a look at CF_REextract here: http://www.contentbox.com/claude/customtags/REextract/testREextract.cfm?p=hf It will allow you to get in a query all occurrences of tags and what's in between

Re: Replace or REReplace function question.

2005-08-25 Thread Barney Boisvert
First, I'd recommend not using CF markup for the fields. Or at least don't require the CFOUTPUT tags, just the hashes. If you have a small number of fields, loop over them and just do a replace(string, "##detail.firstname##", detail.firstname, "all") for each one. Not real elegant, but it is sim

RE: Replace or REReplace function question.

2005-08-25 Thread Snake
The usual way is to use macros. You allow your users to choose from a pre-defined set of macros such as [firstname] [lastname] [address] And when you process the document you replace these macros with real values. Russ -Original Message- From: Andy Mcshane [mailto:[EMAIL PROTECTED] S