How do you split a string in Powershell?

How do you split a string in Powershell?
Answer
Use one of the following patterns to split more than one string:
  1. Use the binary split operator (<string[]> -split <delimiter>)
  2. Enclose all the strings in parentheses.
  3. Store the strings in a variable then submit the variable to the split operator.
 

Tìm kiếm

Back
Top