Skip to content

Instantly share code, notes, and snippets.

Avatar

TryCF.com trycf

View GitHub Profile
View trycf-gist-1614344581931-2dbfc9d8-b71f-29a8-630d-dd1068aa619c.cfm
<cfset sCellContent = "<a href=""javascript:showFormOverview(1516,''Select'',''id_formname_1516'',''nFormId13'',''Form13'','''',''CPAM06 Compte-rendu d''entretien'');"">Select</a>">
<!--<cfset matches = REMatch('"([^"]*)"', sCellContent) />-->
<cfset matches = REMatch('"\"javascript:.*\""', sCellContent) />
<cfdump var="#matches#" label="Example REMatch" />
<!--\"javascript:.*\"-->
View trycf-gist-1614341940184-db2b52d1-de66-e164-a600-0009d5c20517.cfm
<cfoutput>
<cfset a = 'name vasea' />
#a#
<br>
#ListRemoveDuplicates(a, '')#
</cfoutput>
View trycf-gist-1614296263332-305a1bbd-58c9-b616-2e30-2166959d16c5.cfm
<cfset arguments.destinatarios = '101,102,doc_primaria,l_1'>
<cfset tempArray = listToArray(arguments.destinatarios)>
<cfdump var="#tempArray#">
<cfset secciones = []>
<cfset listaDist = []>
<cfloop from="1" to="#ArrayLen(tempArray)#" index="i">