Use regular expression for exclude pattern