Showing results for Paulo Morgado - Scripting Blog [archived]

Sep 25, 2019
2
0

PowerTip: Converting a Here-String to an Array in One Line with PowerShell

Doctor Scripto Doctor Scripto

Summary: Using the split method in a more powerful fashion to split an array based upon two line terminating types Hey, Doctor Scripto. I was wondering if there was a more efficient way of converting a Here-String to an Array when there were multiple line termination options like Linefeed or Carriage Return and Linefeed? There most ...

PowerTipPowerShellregular expressions

Feedback