Make the regex filter an optional argument