Could you just say #ReplaceNCase(myVar, Chr(13) & Chr(13), Chr(13), "ALL")#


Tyler Clendenin
GSL Solutions

  _____  

From: Cedric Villat [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 4:20 PM
To: CF-Talk
Subject: Remove multiple carriage returns

I have some text that I need to remove multiple line breaks from. For
example, if my original text is like this:

> Hello

> My text

> goes here

I want the text to be replaced with

> Hello
> My text
> goes here

Basically I want to clean it up so there are no blank lines. Is there a
simple regex or something else to do this? I'm not sure that there will
always be a > in the front, I just want to remove the blank lines.

Cedric
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to