Show error on invalid RegExp