public function storyline() { if ($this->main_storyline == "") { $this->getPage("Title"); if (@preg_match('!Storyline</h2>\\s*\\n*<div.*?>\\s*\\n*<?p?>?(.*?)<?/?p?<h4!ims', $this->page["Title"], $match)) { if (preg_match('!(.*?)<em class="nobr">Written by!ims', $match[1], $det)) { $this->main_storyline = $det[1]; } elseif (preg_match('!(.*)\\s</p>!ims', $match[1], $det)) { $this->main_storyline = $det[1]; } elseif (preg_match('!(.*)\\s<span class="see-more inline">!ims', $match[1], $det)) { $this->main_storyline = $det[1]; } elseif (preg_match('!(.*)\\s\\|!ims', $match[1], $det)) { $this->main_storyline = $det[1]; } else { $this->main_storyine = trim($match[1]); } } } return $this->main_storyline; }