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 > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291004 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4