I need to determine the 'main' server name based on the My Site server name in a control. This control needs to work in multiple environments with a different set of servers in each.
Example: My Site URL: http://My-Dev 'Main' site URL: http://Dev
What I (think I) need to do is to get the My Site server name (My-Dev in the example), test it, and come up with the corresponding main server name.
I'm sure I could write a RegExp against the URL but it seems to me I've seen the Server property of some SP object somewhere before.