The grep function is used as a filter an array list that runs a regular expression and returns true and evaluated element.

Syntax @List = grep(Expression, @array).

BY Best Interview Question ON 13 Jan 2019