I\'m looking to strip out the domain in this scenario using PowerShell. What is the most effective method to get \'domain.com\' out of the following variable?
Like this:
PS C:\ps> [uri]$URL = "http://www.domain.com/folder/" PS C:\ps> $domain = $url.Authority -replace '^www\.' PS C:\ps> $domain domain.com