Robert Cain shows off some features around strings in Powershell:
PowerShell has some of the best, most flexible string handling of any language I’ve used. In this post we’ll look at some string basics, then some of the features that make it special.
Note in these demos I’m using PowerShell Core 7.1.3 and VSCode. Everything here should also work in the PowerShell 5.1 and the PowerShell IDE.
Read on for types of strings, embedded quotations, string interpolation, and more.