added an "Invert" option for regex