Strings In Depth12 / 16
Up next

Substring

$s = "PowerShell"
# Substring(start, length) or Substring(start)
Write-Output $s.Substring(0, 5)
Write-Output $s.Substring(5)
What you're solving

extract part of a string