[snip]
>
> <CFSET ReadMe = replace(ReadMe,"#Chr(13)##Chr(10)#", "<br>", "ALL")>
>
[snip]
>
> <CFSET ReadMe = REReplace("#ReadMe#","[[:space:]]","<br>","ALL")>
>

Six and two threes as to which one is better.  Apart from the second one has
a slight slip up...  [:space:]  would replace all the spaces with <BR> and
not the CRLF.  I can't remember what the Regex for CRLF is otherwise I'd
tell you... :o)

Note for nominally more efficient code :
Use Chr(13)&Chr(10) instead of "#Chr(13)##Chr(10)#" - it'll save CF going
off and interpreting the contents of the two function calls.


Regards

Stephen
______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to