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