function getEndingPage() { preg_match('/^[^\\d]*(\\d+)\\D*(.*)$/', $this->getPages(), $pages); return $pages[2]; }