Fix &smartcase handling
Ignore error on invalid regex