I'd like to use powershell to get the server name from a string in which the format is the same every time. I create a text file using a command in HP's Data Protector. Examples of strings are...
host="ts-sve-serverT.ca.mycompany.com"
host="ts-sve-serverG.ca.mycompany.com"
host="ts-sve-serverA.ca.mycompany.com"
There are 3 spaces at the beginning. I'm interested in extracting the server name after the first set of quotes and before the first period. The server name may contain 0 to 2 dashes.