Closed dembeck closed 1 year ago
When I try to add a double quote '"' to a regex pattern it gives one of two errors.
"
" An unescaped delimiter must be escaped; in most languages with a backslash (\)
\"
\" This token has no special meaning and has thus been rendered erroneous
`"
That it handles double quotes correctly.
Microsoft Edge Version 114.0.1823.51 (Official build) (64-bit)
Windows 11 23H2 Build 25375 Also have the issue on my Mac
Hi @dembeck
TL;DR: use "" to escape a double quote in a raw .NET string aka @"..."
""
@"..."
Bug Description
When I try to add a double quote '"' to a regex pattern it gives one of two errors.
Reproduction steps
Double Quote
"
to a regex pattern." An unescaped delimiter must be escaped; in most languages with a backslash (\)
Escaped Double Quote
\"
to a regex pattern.\" This token has no special meaning and has thus been rendered erroneous
PowerShell Escaped Double Quote
`"
to a regex pattern." An unescaped delimiter must be escaped; in most languages with a backslash (\)
Expected Outcome
That it handles double quotes correctly.
Browser
Microsoft Edge Version 114.0.1823.51 (Official build) (64-bit)
OS
Windows 11 23H2 Build 25375 Also have the issue on my Mac