Extract HTML page title - ColdFusion regular expression
To extract a page title from a HTML page that has either been pulled from CFHTTP, a stored local file or from the ColdFusion page output:-
<cfset RegExp = REFindNoCase("(<title[>])(.*)(<\/title>)", myFile, 1, True)>
<cfif RegExp.len[1] gt 0>
<cfset pageTitle = mid(myFile, RegExp.pos[3], RegExp.len[3])>
</cfif>
