in reply to grep -p ?

Does perl's built-in grep function support such functionality?
Did you read the docs for perl's built-in grep function ?