• Home
  • Observe and explore
  • Query data
  • Dynatrace Pattern Language
  • DPL Literal Expressions

Literal Expressions

"…" or '...'

Literals are expressed as strings enclosed in single or double-quotes.

output typequantifierconfiguration

String

default value: {1,1} - requires matching minimum 1 and maximum 1 times

charset = character set name enclosed in single or double quotes (for example charset="ISO-8859-1")

locale = string specifying IETF BCP 47 language tag enclosed in single or double quotes (see the list IANA language subtag registry). The default locale is English.

Note

In case the constant contains a single quote or double quote you may either use the other for enclosing (i.e: use double quotes for enclosing if the string contains a single quote or vice versa).

Alternatively, you can escape it with a preceding backslash character \ (0x5c ASCII).

Constants are usually less interest for analytical purposes, hence in most cases, they are just matched - i.e values not exported for the query.

Example

Matching one or more characters 'a'.

plaintext
a aa

Pattern:

plaintext
"a"+ EOL