<html>
<body>
<cfset txt='14:Mar:2019 "This is an Example!"'>
<cfset re1='.*?'> -->
<cfset re2='s'> -->
<cfset re3='.*?'> -->
<cfset re4='(s)'> -->
<cfset re5='.*?'> -->
<cfset re6='(m)'> -->
<cfset re = #re1#re2#re3#re4#re5#re6#>
<cfset m = #REFindNoCase(#re#,#txt#,1,"TRUE")#>
<cfif #ArrayLen(m.pos)# gt 1>
<cfset c1=#Mid(txt,m.pos[2],m.len[2])#>
<cfset w1=#Mid(txt,m.pos[3],m.len[3])#>
<cfoutput>
(#replace(c1,"<" ,"<")#)(#replace(w1,"<" ,"<")#)
</cfoutput>
</cfif>
</body>
</html>
|