parseSection

fnstring[] parseSection(string name, string source)

Parses sections matching a name from the doc string.

Extracts sections like "Usage:" or "Options:" from the documentation.

Parameters

nameThe section name to find (e.g., "usage:").
sourceThe documentation string to search.

Returns

An array of matching section strings.