updated regex to support input comments with no rear / tailing delimiter