What you have is basically what I assumed you would need but you explained
it backwards :-)

> However, now I have to use <br> whenever I want a carriage return.
That's what you need to do (and are now)

> What about having it ignore the Chr(13)
You don't want to ignore it, you want to replace it with <br /> like you are
doing now :-)

Cheers

..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com

-----Original Message-----
From: Rick Faircloth [mailto:[EMAIL PROTECTED] 
Sent: Saturday, October 13, 2007 12:12 AM
To: CF-Talk
Subject: RE: How to write this regex?

I ended up trying this

#replace(noBreak(txt), "#Chr(13)#", "<br />", "All")#

and it works fine... is that what you
were getting at below?  I didn't quite understand the "before and after"
aspect.

Rick

> -----Original Message-----
> From: Bobby Hartsfield [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 12, 2007 11:19 PM
> To: CF-Talk
> Subject: RE: How to write this regex?
> 
> Well for display, you would have to use a BR for a line break anyway...
> unless its wrapped in pre tags...
> If you still need to... you could just replace #chr(13)##chr(10)# with 
> <br /> beforehand then put them back afterwards.
> 
> Before.... replace(str, "#chr(13)##chr(10)#", "<br />", "all") 
> After.... replace(str, "<br />", "#chr(13)##chr(10)#", "all")
> 
> ..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
> Bobby Hartsfield
> http://acoderslife.com
> 
> -----Original Message-----
> From: Rick Faircloth [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 12, 2007 7:17 PM
> To: CF-Talk
> Subject: RE: How to write this regex?
> 
> Ok, Bobby... that works, thanks!
> 
> However, now I have to use <br> whenever I want a carriage return.
> What about having it ignore the Chr(13) ?
> 
> Rick
> 
> > -----Original Message-----
> > From: Bobby Hartsfield [mailto:[EMAIL PROTECTED]
> > Sent: Friday, October 12, 2007 4:16 PM
> > To: CF-Talk
> > Subject: RE: How to write this regex?
> >
> > Not the end result.. the end result is just...
> >
> > #noBreak(str)#
> >
> > :-)
> >
> > ..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
> > Bobby Hartsfield
> > http://acoderslife.com
> >
> >
> >
> >
> >
> 
> 
> 
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291008
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to