Hard breaks should come through to the server as either newlines, carriage
returns, or both, depending on OS.  then it's just a matter of doing a
search and replace for them:

myString = REreplace(myString, "[#chr(10)##chr(13)#]+", " ", "all");

---
Barney Boisvert, Senior Development Engineer
AudienceCentral
[EMAIL PROTECTED]
voice : 360.756.8080 x12
fax   : 360.647.5351

www.audiencecentral.com


> -----Original Message-----
> From: Wurst, Keith D. [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 20, 2003 7:23 AM
> To: CF-Talk
> Subject: hard returns and text areas
>
>
> hi. does anyone know of a way to identify that a user has entered a hard
> return into a text-area and then pull those hard returns out (or replace
> them with just a single space).  any help is greatly appreciated. thanks
> very much.
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Get the mailserver that powers this list at 
http://www.coolfusion.com

Reply via email to