The problem I see with the non-regex solutions is that they will replace all
CR/LFs, whereas I only want to replace single single instances, while
leaving double instances untouched.

--
Jamie Keane
Programmer
SolutionMasters, Inc.
9111 Monroe Rd., Suite 100
Charlotte, NC  28270
www.solutionmasters.com
704.563.5559 x 228  Voice
704.849.9291  Fax
-----Original Message-----
From: Rick Osborne <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Monday, August 14, 2000 4:23 PM
Subject: RE: help with REReplace


>> <cfset var = REReplace(inputvar,"\r?","","ALL")>
>
>This will replace all characters with an empty string, one character at a
>time.  Somehow, I imagine that this is not what you want.  :)
>
>You really don't even need a regex for this; it's just a simple search and
>replace:
>
><CFSET var=Replace(inputvar,Chr(13) & Chr(10),"","ALL")>
>
>However, this will only handle input from browsers that (correctly) wrap
>lines with both Cr and Lf.  To handle both:
>
><CFSET var=ReplaceList(inputvar,"#Chr(13)#,#Chr(10)#",",","ALL")>
>
>-Rick
>
>---------------------------------------------------------------------------
---
>Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
>To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to