Whatever message this page gives is out now! Go check it out!
StringFilter(String string, UDFMethod callback)Parameter | Description |
string | (Required) The input string |
callback | (Required) Inline function executed for each element in the string. Returns true if the string element has to be included in the resultant string. |
<cfscript>
myStr="diamonds"
callback=function(chr){
return chr>"d"
}
writeOutput(StringFilter(myStr,callback)) // imons
</cfscript><cfscript>
myStr="123456789"
callback=function(chr){
return chr>53
}
writeOutput(StringFilter(myStr,callback)) // 6789
</cfscript>