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