Add support for length checking in RegexFileFilter