Yep, it sure is.  But that doesn't affect the code I proposed, because it
uses a character class.  As well as chr 13,10 (for windows), it'll also
catch just chr 10 (for *nix, including Mac OSX), just chr 13 (for non-OSX
Mac), and even chr 10,13 (from a developer who got his code wrong).

It will also compress multiple sequential line breaks into a single space,
which may or may not be desirable, but seemed so for the situation
described.

cheers,
barneyb

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

www.audiencecentral.com


> -----Original Message-----
> From: Critz [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 20, 2003 9:37 AM
> To: CF-Talk
> Subject: Re: hard returns and text areas
>
>
> oi Barney!!
>
> isn't a crlf 13,10 ?
>
> INTRO           db       13,10           ;;Intro-Message: 13,10 = New Line
>
> least it is in asm.... would assume it is a standard thing
>
> --
> Currently Playing: Godsmack - Releasing The Demons
>
> ------------------------------------
> Wednesday, August 20, 2003, 12:08:50 PM, you wrote:
>
> BB> Hard breaks should come through to the server as either
> newlines, carriage
> BB> returns, or both, depending on OS.  then it's just a matter of doing a
> BB> search and replace for them:
>
> BB> myString = REreplace(myString, "[#chr(10)##chr(13)#]+", " ", "all");
>
> BB> ---
> BB> Barney Boisvert, Senior Development Engineer
> BB> AudienceCentral
> BB> [EMAIL PROTECTED]
> BB> voice : 360.756.8080 x12
> BB> fax   : 360.647.5351
>
> BB> 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.
> >>
> BB>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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