Re: Stripping CRs and LFs

2001-01-09 Thread Jamie Keane
Couldn't you replace all instances of Chr(13) (I think that's right...) with a null? -- Jamie Keane Programmer SolutionMasters, Inc. 9111 Monroe Rd., Suite 100 Charlotte, NC 28270 www.solutionmasters.com 704.849.7771 x 228 Voice 704.849.9291 Fax -Original Message- From: Bryan

RE: Stripping CRs and LFs

2001-01-09 Thread Sean Daniels
What is the best way to strip CRs and LFs from a string? cfset crlf = chr(13)chr(10) cfset stripped = replacelist(myString,crlf,"") Should do the trick. - Sean ~~ Structure your ColdFusion code with Fusebox. Get the official book at

RE: Stripping CRs and LFs

2001-01-09 Thread Jason Lees (National Express)
Use the Replace function. The best way is to do a replace for CR and then one for LF. as they could be in any order, generally though it should be CRLF. The character codes for LF is 10 and CR is 13 (I think!). I this should work cfset x=#Replace(x,chr(13),"","ALL")# cfset

RE: Stripping CRs and LFs

2001-01-09 Thread Bryan Batchelder
-- At the macro level, it may appear that I am doing nothing. But at the cellular level I am really quite busy. -Original Message- From: Jamie Keane [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 09, 2001 9:36 AM To: CF-Talk Subject: Re: Stripping CRs and LFs