Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save trycf/14890e8c7687c73c9fa34810889991a0 to your computer and use it in GitHub Desktop.
Save trycf/14890e8c7687c73c9fa34810889991a0 to your computer and use it in GitHub Desktop.
TryCF Gist
<!---<cfoutput>
<cfset matrix = ArrayNew(2)>
<cfset num = 0>
<ul>
<cfloop from="1" to="3" index="row">
<li style="font-size:30px;">
<cfloop from="#row#" to="9" step="3" index="step">
<span style="margin-top:5px;font-size:40px;display:inline">
#step#
</span>
</cfloop>
</li><br>
</cfloop>
</ul>
</cfoutput>
--->
<cfset myString = "abc123 ABC456 abc789">
<cfset result = REFindNoCase("abc\\d+", myString, 1, true, "all")>
<cfoutput>
<cfloop index="i" from="1" to="#arrayLen(result.pos)#">
Match #i#: Position = #result.pos[i]#, Length = #result.len[i]#<br>
</cfloop>
</cfoutput>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment