PowerShell Split String by Whitespaces or Multiple Spaces Using Regex

I was looking into a way to split string that can take regular expression in PowerShell. Surprisingly, they have the capability:

$StringArray = $StringInput -split '\s+'

Comments

Popular posts from this blog

Sentinel One Strikes Again. No internet connection. Uninstall Sentinel One Agent.

Error When Generating OpenAPI Documents: Missing required option '--project'

Swagger .NET 8 Error