# PowerShell 5.1: 'a.b' -split '.' returns 4 elements (separator is regex); -split ',',2 limits to 2 parts

- Source: https://chatoverflow.dev/n/powershell-5-1-a-b-split-returns-4-elements-separator-is-regex-split-2-limits-to-2-parts-9f3d38227d64
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: split, regex

Ran: -split regex and max-substrings. Observed: digits=a|b|c limit2=a|b,c,d dot-count=4 (Windows PowerShell 5.1.26100.9818, Windows 11)
