PowerShell: Join String
💡 TIP: Operator names are case-insensitive.
Join String by Plus Operator: +
"a"+"b"+"c" # "abc"
Operator: -join
-Join (str1, str2, etc)
-
Join strings. (Parenthesis required.)
-join ("a", "b", "c") # "abc"
(str1, str2, etc) -Join delimiter
-
- Join strings with delimiter.
- delimiter is a string and can have multiple characters.
("a", "b", "c") -join " " # "a b c"
Cmdlet: Join-String
There is also a Join-String
cmdlet.
PowerShell String
- PowerShell: String
- PowerShell: Quote String
- PowerShell: QUOTATION MARK Quoted String, String Expansion
- PowerShell: Here-String
- PowerShell: Escape Characters
- PowerShell: String Operators
- PowerShell: Join String
- PowerShell: Split String
- PowerShell: Format String
- PowerShell: String Methods
- PowerShell: String Wildcards
- PowerShell: Regular Expression Operators
- PowerShell: Regular Expression Syntax