Created
July 8, 2025 11:24
-
-
Save trycf/14890e8c7687c73c9fa34810889991a0 to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!---<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