fix regex parse of id