PowerShell Tutorial
PowerShell: String
By Xah Lee. Date:
2024-03-04
. Last updated:
2026-04-25
.
What is String
String is a sequence of
Unicode characters
.
There are 3 syntax to write string literals.
APOSTROPHE Quoted String (verbatim)
PowerShell: APOSTROPHE Quoted String (verbatim)
QUOTATION MARK Quoted String
PowerShell: QUOTATION MARK Quoted String (Expandable)
Here-String (aka here-doc)
PowerShell: Here-String (block quote for big text)
PowerShell, string and regular expression
PowerShell: String
PowerShell: APOSTROPHE Quoted String (verbatim)
PowerShell: QUOTATION MARK Quoted String (Expandable)
PowerShell: Here-String (block quote for big text)
PowerShell: String Escape Sequences
PowerShell: String Length
PowerShell: Join String
PowerShell: Split String
PowerShell: Format String
PowerShell: String Methods
PowerShell: String Wildcards (glob pattern)
PowerShell: Regular Expression Operators
PowerShell: Regex Result ($Matches)
PowerShell: Regular Expression Syntax
Search 🔍
PowerShell language tutorial
File Name Extension
File Name Extension
Comment
Comment
Semicolon
Print
Print
Object and Type
Object Type, Properties, Methods
Path
Path Tutorial
Path Expansion
Path Functions
Pipe
Pipe Output
Pipeline Commands
Number
Number Input
Arithmetic
String
String
Variable
Assignment
Variable
Automatic Variables
Boolean
Boolean
Boolean Operators
Test Equality
Compare Numbers
Conditional
If Else
Data Structure
Array
Hashtable, Dictionary
Loop, Iteration
Loop
Input, Output
Prompt User
Read File
Write File
Function
Function
Error
throw
Profile and Script
Profile
Write Script
Load a Script
Eval
Get Script Path
Misc
Timing, Benchmark
What is Cmdlet
Provider, Datastore