Test, validate and match regular expressions
This PCRE regex is designed to extract the goal section from Markdown recipe pages that have a specific YAML frontmatter category ('sailrecipe'). It uses capture groups to separate the document header, the '### Goal ###' heading, the actual goal text on the next line, and the trailing newlines. It is useful for parsing structured documentation or game files to find specific objectives.