Lucee Function Reference

stringfilter()

Filters a string to its elements for which the callback function returns true.

Example

stringfilter(string string,function closure):string

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
string string  Yes Input string.  
closure function  Yes Closure or a function reference that will be called for each of the iteration.