/ Published in: ColdFusion
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<cfset var LOCAL = StructNew() /> <cfset LOCAL.Tag = StructNew() /> <cfset LOCAL.templates = structnew() /> <cfset LOCAL.NamePattern = CreateObject( "java", "java.util.regex.Pattern" ).Compile( "(<cfinclude[\s+]*[\w+\s*=\s*""""|[^\s>]*]*>)" ) /> <cfset LOCAL.NameMatcher = LOCAL.NamePattern.Matcher(ARGUMENTS.HTML) /> <cfset count = 1 > <cfloop condition="LOCAL.NameMatcher.Find()"> <cfset LOCAL.Tag[count] = UCase(LOCAL.NameMatcher.Group( 1 )) /> <cfset count = count +1 > </cfloop>