fix regex != in boolean switch, fixes #276