You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected Behavior:
Should try to match the number of quotes both beginning to end (and perhaps vice versa), searching from end of string as well. This way, when the literal terminates in 3 dbl-quotes, even preceeded by another one will still compile.
Actual Behavior:
Doesn't compile.
The text was updated successfully, but these errors were encountered:
using System;publicclassProgram{publicstaticvoidMain(){// Trying to create this Regex pattern with a raw string literal// https://regexr.com/80oti// Using three quotesvarthreeQuotes= """
\=\"([a-z]+)\"
""";varfourQuotes= """"
\=\"([a-z]+)\"
"""";}}
Version Used:
12
Steps to Reproduce:
Try to create a raw string literal of the following regex pattern ending in
"
or\"
:Diagnostic Id:
Expected Behavior:
Should try to match the number of quotes both beginning to end (and perhaps vice versa), searching from end of string as well. This way, when the literal terminates in 3 dbl-quotes, even preceeded by another one will still compile.
Actual Behavior:
Doesn't compile.
The text was updated successfully, but these errors were encountered: