Added third option to determine if regex needs to match or not match.

Also fixed a bug where errors were overwriting eachother