Closed comet-crmiller closed 3 months ago
Code doesn't work
"a,b,c,d,e,f,g,h" -split ",", -3 in this article indicates that the string will split starting from the end, and it does not.
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_split?view=powershell-7.4
https://github.com/MicrosoftDocs/PowerShell-Docs/blob/main/reference/7.4/Microsoft.PowerShell.Core/About/about_Split.md
@sdwheeler
634c57a3-c4dc-7a04-381e-7ae326b40483
You are running the command in Windows PowerShell 5.1 but looking at documentation for PowerShell 7.4.
Type of issue
Code doesn't work
Feedback
"a,b,c,d,e,f,g,h" -split ",", -3 in this article indicates that the string will split starting from the end, and it does not.![image](https://github.com/MicrosoftDocs/PowerShell-Docs/assets/123398499/3563ae81-5054-4710-b314-d682923cd58c)
Page URL
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_split?view=powershell-7.4
Content source URL
https://github.com/MicrosoftDocs/PowerShell-Docs/blob/main/reference/7.4/Microsoft.PowerShell.Core/About/about_Split.md
Author
@sdwheeler
Document Id
634c57a3-c4dc-7a04-381e-7ae326b40483