[{"data":1,"prerenderedAt":57},["ShallowReactive",2],{"/2025/10/07-powershell-split-string-by-whitespaces-or-multiple-spaces-using-regex":3},{"id":4,"title":5,"body":6,"date":48,"description":44,"extension":49,"meta":50,"navigation":51,"path":52,"robots":53,"seo":54,"stem":55,"__hash__":56},"posts/2025/10/07 PowerShell-split-string-by-whitespaces-or-multiple-spaces-using-regex.md","07 PowerShell Split String By Whitespaces Or Multiple Spaces Using Regex",{"type":7,"value":8,"toc":45},"minimark",[9,18,25,28,31],[10,11,13],"post-title",{":date":12},"date",[14,15,17],"h1",{"id":16},"powershell-split-string-by-whitespaces-or-multiple-spaces-using-regex","PowerShell Split String by Whitespaces or Multiple Spaces Using Regex",[19,20,21],"notes",{},[22,23,24],"p",{},"This is a repost from my old blog. First posted in 10/25/2018.",[26,27],"br",{},[22,29,30],{},"I was looking into a way to split string that can take regular expression in PowerShell. Surprisingly, they have the capability:",[32,33,34],"code-block",{},[35,36,41],"pre",{"className":37,"code":39,"language":40},[38],"language-text","$StringArray = $StringInput -split '\\s+'\n","text",[42,43,39],"code",{"__ignoreMap":44},"",{"title":44,"searchDepth":46,"depth":46,"links":47},2,[],"2025-10-07T00:00:00.000Z","md",{},true,"/2025/10/07-powershell-split-string-by-whitespaces-or-multiple-spaces-using-regex",null,{"title":5,"description":44},"2025/10/07 PowerShell-split-string-by-whitespaces-or-multiple-spaces-using-regex","JbSKCd13aQSiDiZK0kIiCf8kr8kab-r0bsC2TeWPQ2U",1785167452960]