Do you mean if you have adjacent cr/lf (say 3) you want to keep 3 but if you
have 1 you want to strip it?
If so I don't think what you have will work because it will not distinguish
adjacent occurences. Also
since you have the ? you will be replacing nothing or \r with nothing which
will probably hang the server.
----- Original Message -----
From: "Jamie Keane" <[EMAIL PROTECTED]>
To: "CFTalk" <[EMAIL PROTECTED]>
Sent: Monday, August 14, 2000 2:02 PM
Subject: help with REReplace
> This is a multi-part message in MIME format.
>
> ------=_NextPart_000_000D_01C00609.01E91A20
> Content-Type: text/plain;
> charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> Hi all,
>
> I need to check for single instances of a CR/LF only and replace them =
> with null strings. Am I right with this bit of code?
>
> <cfset var =3D REReplace(inputvar,"\r?","","ALL")>
>
> When I run the application, the server seems to hang. Is this expected =
> behaviour?
>
> Thanks,
> Jamie
>
> --
> 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
>
> ------=_NextPart_000_000D_01C00609.01E91A20
> Content-Type: text/html;
> charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META content=3D"text/html; charset=3Dwindows-1252" =
> http-equiv=3DContent-Type>
> <META content=3D"MSHTML 5.00.2919.6307" name=3DGENERATOR></HEAD>
> <BODY bgColor=3D#ffffff>
> <DIV><FONT size=3D2>Hi all,</FONT></DIV>
> <DIV> </DIV>
> <DIV><FONT size=3D2>I need to check for single instances of a CR/LF only =
> and=20
> replace them with null strings. Am I right with this bit of=20
> code?</FONT></DIV>
> <DIV> </DIV>
> <DIV><FONT size=3D2><cfset var =3D=20
> REReplace(inputvar,"\r?","","ALL")></FONT></DIV>
> <DIV> </DIV>
> <DIV><FONT size=3D2>When I run the application, the server seems to =
> hang. Is=20
> this expected behaviour?</FONT></DIV>
> <DIV> </DIV>
> <DIV><FONT size=3D2>Thanks,</FONT></DIV>
> <DIV><FONT size=3D2>Jamie</FONT></DIV>
> <DIV><FONT size=3D2><BR>--<BR>Jamie =
> Keane<BR>Programmer<BR>SolutionMasters,=20
> Inc.<BR>9111 Monroe Rd., Suite 100<BR>Charlotte, NC 28270<BR><A=20
> href=3D"http://www.solutionmasters.com">www.solutionmasters.com</A><BR>70=
> 4.563.5559=20
> x 228 Voice<BR>704.849.9291 Fax</FONT></DIV></BODY></HTML>
>
> ------=_NextPart_000_000D_01C00609.01E91A20--
>
> --------------------------------------------------------------------------
----
> Archives: http://www.mail-archive.com/[email protected]/
> 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/[email protected]/
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.