inotifywait usage and exclude

Correct regexp: (ignorefolder1|folder1/ingnorefile1). But your expression works too.

Using a backslash to escape a non-metacharacter is an error. "/" is not a metacharacter and does not need to be escaped.