Text Processing6 / 14
Up next

-split a string

$csv = "a, b ,c ,  d"
# split on comma with optional spaces
$parts = $csv -split '\s*,\s*'
# 4
$parts.Count
What you're solving

split on a regex into an array