FrontMatter::REGEXP

Same name in other branches
  1. 9 core/lib/Drupal/Component/FrontMatter/FrontMatter.php \Drupal\Component\FrontMatter\FrontMatter::REGEXP
  2. 10 core/lib/Drupal/Component/FrontMatter/FrontMatter.php \Drupal\Component\FrontMatter\FrontMatter::REGEXP

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

File

core/lib/Drupal/Component/FrontMatter/FrontMatter.php, line 57

Class

FrontMatter
Component for parsing front matter from a source.

Namespace

Drupal\Component\FrontMatter

Code

const REGEXP = '/\\A(' . self::SEPARATOR . '(.*?)?\\R' . self::SEPARATOR . ')(\\R.*)?\\Z/s';

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.