Fix a bug with regular expression with the following example form