less strict regex for warning exception