public function doInclude(Node $input, Node $item) { $title = $item->value("title"); preg_match('/(?:\\()\\d+(?:\\))/', $title, $matches); if (isset($matches[0])) { $y = str_replace('(', '', $matches[0]); $y = str_replace(')', '', $y); $year = (int) $y; if ($year < 1999) { return false; } return true; } return false; }