Implement regular expression matching for ignored files