"[^"\\]+|""|\\.)*"
line breaks: /+ (attached to ".*")
Strings are always written in
double quotes.
"This is a string."
If the string shall
contain double quotes,
these must be doubled.
"""Hello"", he said."
represents: "Hello", he said.
Alternatively, you can use the
backslash notation known from PHP, JS, etc.
"\"Hello\", he said."
also represents: "Hello", he said.
The
line break character
can be written as "\n" but also
simply as a slash outside of a string,
attached to a "..." string
without any space.
PHP, JS, C/C++:
"1st line\n2nd line\n"
Eas:
"1st line"/"2nd line"/
The slash is highly recommended for readability.
Always remember though that
it
cannot stand on its own,
so if you need just a line break character,
write it as ""/ or /"" or "\n"!
A blank line is created by //,
two blank lines by ///, and so on.
(Envision the blank lines as the gaps
between the slashes.)
The
backslash notation
supports the following characters:
\\ = backslash (escaping)
\" = double quote
\; = semicolon
\n = newline, line break
\t = tab, tabulation
\r = return, carriage return
\0 = code %00 character