Skip to content

Instantly share code, notes, and snippets.

@shaneis
Created November 12, 2018 21:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shaneis/807b73d6016dcd55c1f7fe460cacf365 to your computer and use it in GitHub Desktop.
Save shaneis/807b73d6016dcd55c1f7fe460cacf365 to your computer and use it in GitHub Desktop.
Using substring to split string: example: basic
$String = 'SQL Server'
0..($String.Length - 1) | ForEach-Object -Process {
$String.Substring($_, 1)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment