I figured that out.. thanks

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

the above code works however I was wondering if you could do me another favour. At the minute you are searching for the "***". Would it be possible to come up with a pattern that finds the three stars, username, date and time?

ex: *** User1 10/28/2003 2:53:52 ***

Its just so its fool proof. My concern is if the column contains three stars somewhere else in the comments then this code would fail. Are you with me?
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to