Bug 5354 follow-up : dealing with a wrong regexp