The default C# delimiter is @"..." (single quote string literal). The additional options currently show """...""", """"...."""", """""...""""" (3x, 4x, and 5x quote strings, but not string literals) when switching to them.
These other delimiter options should probably also be string literals.
Examples
@"..." delimiter:
REGULAR EXPRESSION: @""((?>[^""]+|[""]{2})*)""
TEST STRING: @"" @"text" @"a\nb" @"a""b" @"a\""\""b"
Result (in substitution field) on regex101: "" "text" "a\nb" "a""b" "a\""\""b"
Result (of "Code Generator" output) on try.dot.net (after manually prepending @ to """): " @"text" "a\nb" "a"b" "a\"\"b"
Expected
The delimiters should show @ before the """, """", """"".
The Code Generator output should as well. Additionally, there should probably not be a newline after the opening """ and before the closing """, as shown above.
I would expect it to look the way the @"..." outputs now.
Bug Description
The default C# delimiter is
@"..."
(single quote string literal). The additional options currently show"""..."""
,""""....""""
,"""""..."""""
(3x, 4x, and 5x quote strings, but not string literals) when switching to them.These other delimiter options should probably also be string literals.
Examples
@"..."
delimiter:@""((?>[^""]+|[""]{2})*)""
@"" @"text" @"a\nb" @"a""b" @"a\""\""b"
"$1"
"" "text" "a\nb" "a""b" "a\""\""b"
" @"text" "a\nb" "a"b" "a\"\"b"
"""..."""
delimiter:@""((?>[^""]+|[""]{2})*)""
@"" @"text" @"a\nb" @"a""b" @"a\""\""b"
"$1"
"" "text" "a\nb" "a""b" "a\""\""b"
@
to"""
):" @"text" "a\nb" "a"b" "a\"\"b"
Expected
@
before the"""
,""""
,"""""
."""
and before the closing"""
, as shown above.@"..."
outputs now.