improve the regex for matching the end of commentary.