Typst Fumadocs

Regex

Documentation for the Regex type.

A regular expression.

Can be used as a show rule selector and with string methods like find, split, and replace.

See here for a specification of the supported syntax.

Example

Loading compiler...

Constructor

Create a regular expression from a string.

#regex(
  regex
) -> regex

Parameters

Prop

Type

On this page