Strings in the Rx language are written surrounded by double quotes with a type prefix before the initial quote. For example:
R"My first line"
The type prefix determines how the string between double quotes will be interpreted. The Rx language defines three type prefixes:
P (plain text) - the string is a plain text and is treated as is by the language interpreter. For example:
P"My plain text string"
B (backslashed text) - the string is a plain text with backslashed chars support (\', \", \0, \a, \b, \f, \r, \n, \t, \v, \). For example:
B"\tMy backslashed string with tab and line ending\r\n"
R (regular expression) - the string is a regular expression and is processed by the language interpreter according to the rules of regular expression syntax with one difference: the double quote within the string must be backslashed. For example:
R"My .*? string"
If you want to use a double quote character inside an Rx string, then in the first case you must specify two double quotes instead one (P"""quoted text"""), and in other cases, use a backslash (B"\"quoted text\"", R"\"quoted text\"").
You can also control case sensitivity when you specify a search string. Use prefix register for this. If you need to disable case sensitivity - use a lowercase prefix (eg: p"Your case insensitive string"), to enable case sensitivity use an uppercase prefix (eg: P"Your case sensitive string").
If you forget to prefix the string, it will be treated as R"Your string".