I'm not clear on the partial guid matching comment. The regex is just used to find the guids in the resulting string and shorten them. Is that the string matching you're referring to?