replace the whole block by my code (but test it anyway!!).
For your other problem, I see two possibilities:
1. You are using HTMLEditFormat() to display in the textarea. It
replaces CR/LF. Just create a UDF that replaces &,<,>," and use that
instead (be sure to replace & first).
2. There is no LF (chr(10)) in your code and that is why it doesn't
show.
THT
Pascal
> -----Original Message-----
> From: cf coder [mailto:[EMAIL PROTECTED]
> Sent: dinsdag 30 maart 2004 12:48
> To: CF-Talk
> Subject: Re: help with string manipulation (Find,Replace)
>
> Thank you pascal, the code works just the way I want it to.
> here it is:
>
> <cfif Find('#Chr(13)#',qResults.Slug)>
> <cfset
> tmp=REReplaceNoCase(qResults.Slug,'^[^a-z0-9_]*([a-z0-9_])','\1')>
> <cfif Find('***',tmp) and trim(Left(tmp,Find('***',tmp)-1)) neq "">
> <cfset str =
> REReplace(qResults.Slug,"^\s*([*]{3}.*?[*]{3})?\s*","")>
> <cfset str = REReplace(str,"^(.*?)\s*[*]{3}.*$","\1")>
> #str#
> <cfelseif trim(Left(tmp,Find('#Chr(13)#',tmp))) neq "">
> #trim(Left(tmp,Find('#Chr(13)#',tmp)))#
> <cfelse>
> #tmp#
> </cfif>
> </cfif>
>
>
> I need your help with something else. This is not related to
> my original query, but related. When the comment field data
> is displayed in a text area, it looses the new line
> character. Don't know why. Here is an example.
>
> MOVE FOLDER *** 04/06/2003 13:41:47 *** blah, blah ***
> 04/06/2003 2:33:5"
>
> When I want display it like this:
>
> MOVE FOLDER
>
> *** 04/06/2003 13:41:47 ***
>
> blah, blah
>
> *** 04/06/2003 12:33:5"
>
> Can you show me how to do this please.
> Best Regards,
> cfcoder
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

