add support for `exclude` option (with RegExp support)