For the complete documentation index, see llms.txt. This page is also available as Markdown.

Strings

The three string forms — open, regular, and raw.

Strings represent sequences of Unicode code points. They carry textual data and preserve whitespace and formatting within their boundaries.

Internet Object supports three string forms, each with its own syntax and use cases:

stringValue = openString | regularString | rawString
Form
Description
Example

Unquoted; the simplest form; ends at a structural character or whitespace.

John Doe

Quoted with single or double quotes; supports escaping.

"John Doe"

Prefixed with r; quoted; backslashes are literal.

r'C:\path' or r"C:\path"

All three forms preserve whitespace and Unicode content as written.

When to use each form

  • Open string — simple, unstructured text with no leading or trailing whitespace and no structural characters.

  • Regular string — text that needs structural characters, leading/trailing whitespace, or escape sequences.

  • Raw string — text with many backslashes or quotes (file paths, regular expressions), where escaping would be cumbersome.

See Also

Last updated

Was this helpful?