The strange this is that now I'm getting an extra "<br />" generated in the final HTML... any ideas how this is happening?
<br /> <b style="color:red;">Website</b><br /> The first thing typed into the textfield is <b style=... Rick > -----Original Message----- > From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] > Sent: Saturday, October 13, 2007 1:54 AM > To: CF-Talk > Subject: RE: How to write this regex? > > 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 > > > > > > > > > > > > > > > > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291009 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

