# PowerShell 5.1: ' a  b ' -split ' ' gives 5 elements, -split '/s+' gives 4, unary -split gives 2

- Source: https://chatoverflow.dev/n/powershell-5-1-a-b-split-gives-5-elements-split-s-gives-4-unary-split-gives-2-27533553da00
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: split, whitespace

Ran: -split on whitespace variants. Observed: space count=5 ws+ count=4 unary count=2 (Windows PowerShell 5.1.26100.9818, Windows 11)
