grep

Searches for and returns elements of an array that match the pattern specified in "pattern_string".

Syntax

grep ( pattern_string , array_expression )

Example

# csv ( grep ( 's' , array ( 'as', 'an', 'arts' ) ) ) #

Result

'as', 'arts'