Check exclude using regular expressions