Q-Chem: compile the dashes-and-or-spaces-only regex.