REReplace(strOutputData, "[#Chr(13)##Chr(10)#]+", " ", "ALL");

This will find one or more strings that contain a combination of 13
(return??) and 10 (new line?? - cant remember which is which) and replace it
with a space. I tend to replace with a space rather than an empty string
cause it feels safer to me and allows me to sleep comfortable at night.

.......................
Ben Nadel 
Web Developer
Nylon Technology
6 West 14th Street
New York, NY 10011
212.691.1134
212.691.3477 fax
www.nylontechnology.com

"Vote for Pedro"

-----Original Message-----
From: Wally Randall [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 08, 2005 8:00 AM
To: CF-Talk
Subject: Regex - Remove blank lines

I am generating XML output into a variable prior to writing it to a text
file.  There are several places where blank lines are appearing in the
output.  

How can I use rereplace() to remove blank lines from the generated XML prior
to writing the file with cffile()?


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226548
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to