When including a literal quote character inside a quoted string in Powershell, how do I escape the quote character to indicate it is a literal instead of a string delimeter?
PowerShell – Literal Escape Character
powershell
Related Topic
- Windows – How to escape double quote character for use in findstr on the PowerShell command line
- Powershell 2: How to strip a specific character from a body of ASCII text
- PowerShell -replace operator exhibits quirky behavior with particular data
- Windows – Powershell: invoke-expression with “find”-command
- Powershell – Windows: Escape spaces in command
Best Answer
From
help about_quoting_rules
The use of the backtick character to escape other quotation marks in single quoted strings is not supported in recent versions of PowerShell. In earlier versions of PowerShell the backtick escape character could be used to escape a double quotation mark character within a single quoted string as detailed in the
help about_quoting
document that is available in those versions of PowerShell.