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 > > > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Check out the new features and enhancements in the latest product release - download the "What's New PDF" now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291007 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

