To remove the extraneous spaces at the end of value, change the regex to this (only changes near the end): @"\s*%(?<KEY>[^,]+),\s*(?<VALUE>[^%]*?)\s*(?=%|$)"
You're psychic. I was trying to make that change when your email arrived. Good timing too, as I've had a dozen failures so far. Thanks Greg
