Strings In Depth8 / 16
Up next

IndexOf

$s = "name=value"
# .IndexOf returns the position, or -1 if absent
$i = $s.IndexOf("=")
Write-Output $i
Write-Output $s.Substring($i + 1)
What you're solving

find a substring position