update .filter() to accept a regular expression string