<cfscript>
stTmp =
REFind("[*]{3}[[:space:]]+([^*]+)[[:space:]]+[*]{3}",str,1,true);
info = Mid(str,stTmp.pos[2],stTmp.len(2);
</cfscript>
<cfoutput><span class="time">#info#</span></cfoutput>

> -----Original Message-----
> From: cf coder [mailto:[EMAIL PROTECTED]
> Sent: vrijdag 14 mei 2004 17:07
> To: CF-Talk
> Subject: Re: help with string manipulation (Find,Replace)
>
> Pascal or anybody who can help!
>
> I'm in a similar problem again and need your help. I'm
> currently using the code provided by Pascal. The solution to
> which is mentioned above.
>
> I am pulling the data from the 'comments' column in a
> database table. The data in the comments column looks like this.
>
> *** User1 10/28/2003 2:53:52 ***
>
> THIS IS A TEST
>
> *** User 2 04/06/2003  13:41:47 ***
>
> blah, blah
>
> I want to read everything that's between the *** ie *** User
> 1 10/28/2003 2:53:52 *** and display it like this:
> <span class="time">User 1 | 14/4/2004 15:58:15</span> THIS IS A TEST
>
> Can somebody please show me how to do this using regular expressions?
> Many thanks
> cf coder
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to