Fixed terms regular expression to handle blank terms