Modify regex to parse compare result.