function __construct($path)
{
$this->page = preg_replace('{^\.(?:/|$)}', '', $path);
function __construct($path)
{
$this->page = preg_replace('{^\.(?:/|$)}', '', $path);
}x', $this->body, $img, PREG_OFFSET_CAPTURE) ) {
# strip part after matching divider (image)
if (isset($img[1])) {
}x', $this->body, $img, PREG_OFFSET_CAPTURE) ) {
# strip part after matching divider (image)
if (isset($img[1])) {
</h2> (?: \s+ | <p\sclass="nav\b.*?</p> | <div[^>]*> )* <p> \s* (.*?) </p>
}sx', $this->raw, $bodyp, PREG_OFFSET_CAPTURE)) {
# fallback paragraph contents following the page header
</h2> (?: \s+ | <p\sclass="nav\b.*?</p> | <div[^>]*> )* <p> \s* (.*?) </p>
}sx', $this->raw, $bodyp, PREG_OFFSET_CAPTURE)) {
# fallback paragraph contents following the page header