Forked from trycf/trycf-gist-1533143618598-72acb547-d311-8108-43e4-1aba72e21a2e.cfm
Last active
August 1, 2018 17:38
-
-
Save armchairdeity/36c49d11534b90419f08ca5f1b040a29 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
<cfscript> | |
a = "1,2,3,,5,,8"; | |
function countBlanks(list) { | |
return REMatch(",,", a).len(); | |
} | |
</cfscript> | |
<cfoutput> | |
list: #a#<br> | |
blanks: #countBlanks(a)#<br> | |
</cfoutput> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment