functions/web/Get-UrlFilename.ps1

1
2
3
4
5
6
7
8
9
10
11
function Get-UrlFilename {
    [Cmdletbinding()]
    param (
        [Parameter(Mandatory = $true)]
        [string]$Url
    )

    process {
        $Url.Substring($Url.LastIndexOf("/") + 1)
    }
}