This file contains 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
<cfsavecontent variable="comments"> | |
This should be a link: @12345<br/> | |
@33333 ...so should that.<br/> | |
but not this @ab111 | |
</cfsavecontent> | |
<cfset LinkableComments = reReplaceNoCase(comments, "@([0-9]{5})", "<a href=""detailPage.cfm?ID=\1"">@\1</a>", "all") /> | |
<cfoutput>#LinkableComments#</cfoutput> |
This file contains 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> | |
/* Put this in the Setup Tab */ | |
myTable = queryNew("fruit,color","Integer,Varchar",[ ["apples","green"], ["banannas","yellow"], ["grapes","purple"] ]); | |
/****************************/ | |
/* Put this in the Default Tab */ | |
writeDump(myTable); | |
local.svc = new query( | |
sql = "SELECT * FROM myTable", |
This file contains 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> | |
arrayTest = [['a','b','c'],['d','e','f']]; | |
writeDump(arrayTest); | |
// same as | |
arrayTest2 = arrayNew(2); | |
arrayTest2[1][1] = 'a'; | |
arrayTest2[1][2] = 'b'; | |
arrayTest2[1][3] = 'c'; | |
arrayTest2[2][1] = 'd'; | |
arrayTest2[2][2] = 'e'; |
This file contains 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> | |
st1 = { | |
one = "Tahi", | |
two = "Rua", | |
three = "Toru", | |
four = "Wha" | |
}; | |
st2 = f(st1); |
NewerOlder