Update regular expressions for a better pattern choice.