You are here

constant FrontMatter::FRONT_MATTER_REGEXP in Drupal 8

The regular expression used to extract the YAML front matter content.

File

core/modules/help_topics/src/FrontMatter.php, line 26

Class

FrontMatter
Extracts Front Matter from the beginning of a source.

Namespace

Drupal\help_topics

Code

const FRONT_MATTER_REGEXP = "{^(?:" . self::FRONT_MATTER_SEPARATOR . ")[\r\n|\n]*(.*?)[\r\n|\n]+(?:" . self::FRONT_MATTER_SEPARATOR . ")[\r\n|\n]*(.*)\$}s";