“Quoted string” is one of the patterns that you can select on the Match panel. With this pattern you can match a quoted string as it would appear in the source code in one of many popular programming languages.
![]()
Kind of string that the pattern should match. Select “custom” if you want to specify the quotation and escape characters of the strings that you want to match. Select a programming language to match a string literal as it can appear in source code using that programming language. If newer versions of the programming language support more string styles than older versions then you can choose whether to support those newer string styles or not.
Turn on to allow literal line breaks in the string, as permitted by Visual Basic 14 (Visual Studio 2015) and later, but not by older versions of VIsual Basic or other dialects of the BASIC programming language.
Turn off to allow only single-line strings.
Turn on to allow raw strings as supported by C++11 and later. Raw strings can contain literal line breaks and don’t require (or allow) characters to be escaped.
Turn off to allow only classic C strings that cannot contain literal line breaks and require characters to be escaped.
Turn on to allow raw strings as supported by C# 11 (Visual Studio 2022) and later. Raw strings are opened with 3 or more double quotes and closed with the same number of double quotes. They can contain literal line breaks and don’t require (or allow) characters to be escaped.
Turn off to allow only double-quoted C# strings and verbatim C# strings. Double-quoted C# strings cannot contain literal line breaks and require characters to be escaped. Verbatim C# strings start with @” and can contain line breaks. They don’t allow characters to be escaped but they require literal double quotes to be doubled.
Turn on to allow multi-line strings as supported by Delphi 12 and later. Multi-line strings are opened with and odd number of 3 or more single quotes followed by a line break. They are closed with the same number of single quotes preceded by a line break and optional horizontal whitespace. They can contain literal line breaks.
Turn off to allow only single-quoted strings as supported by older versions of Delphi and other implementations of Pascal.
Turn on to allow triple-quoted text blocks as supported by Java 15 and later. They can contain literal line breaks.
Turn off to allow only double-quoted strings as supported by every version of Java.
If your programming language does not use the string style of one of the programming languages supported by this pattern then you can specify a custom string style. There are many different options in order to support nearly every conceivable string style.
The character(s) to begin the quoted string.
If strings start with multiple identical characters then you can enter a single character as the opening quote and specify that character to be repeated. This allows for a variable number of opening quotes.
If strings start with multiple identical characters then you can enter a single character as the opening quote and specify that character to be repeated. This allows for a variable number of opening quotes.
The character(s) that can be used to escape closing quotes that should appear as literals inside the string. Leave this blank if the string style does not allow quotes to be escaped.
Turn on to allow the escape character to escape any character.
Turn off to allow the escape character to escape only itself and closing quotes.
The character(s) to end the quoted string. Leave this blank to require the closing quote to be identical to the opening quote.
Allow the closing quote to be doubled up to add it as a literal character to the contents of the string.
The character(s) that must appear before a literal line break to treat the literal line break as part of the string. Only used if you allow line breaks in the string. Leave this blank to allow unescaped literal line breaks.
Turn on to allow literal line break characters in the string. They must be preceded by the continuation character, if you specify one.
Turn off to allow only single-line strings.