-split is divided by regular expression by default. Therefore, regex requires faster backslashes. You can tell PowerShell not to use regex like this:
$path -split '\',-1,'SimpleMatch'
-join just accepts any characters you use as a delimiter to stick between the joined strings.
Keith hill
source share