PowerShell: String Escape Sequences
These sequence of characters have special meaning when inside "QUOTATION MARK" quoted string.
`0 | Null |
`a | Alert |
`b | Backspace |
`e | Escape |
`f | Form feed |
`n | New line |
`r | Carriage return |
`t | Horizontal tab |
`u{h} | Unicode. h is 1 to 6 digits of the character's codepoint in hexadecimal |
`v | Vertical tab |
see ASCII Characters
example of a emoji:
"🦋" -eq "`u{1F98B}" # True
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
- PowerShell: Regular Expression Operators
- PowerShell: Regex Result ($Matches)
- PowerShell: Regular Expression Syntax