Skip to content

Dot

The dot matches an arbitrary code point except a line break. In multiline mode, the dot also matches line breaks.

let Dot = '.';
.{4,12}

The dot is supported in all flavors.

In .NET, the dot matches a UTF-16 code unit rather than a full code point, so a character outside the Basic Multilingual Plane matches two dots (..).

Support for the dot is gated by the dot feature. Specify features with the --allowed-features option.

The dot matches a single code point (except in .NET, see above), but not a line break.

Regex engines disagree on what constitutes a line break character. This is explained here in detail. To get the same behavior everywhere, use ![n] or ![v] instead.

When multiline mode is enabled in the regex engine, the dot matches every code point, including line breaks.

The dot is compiled to ..

Regex engines disagree on what constitutes a line break character, so the dot is not really portable.

Added in Pomsky 0.8