public static function getAnchorName($link) {
    preg_match_all("/#(.+)$/", $link, $matches);
    if (sizeof($matches) > 0 && sizeof($matches[1]) > 0) {
      $name = $matches[1][0];
      return $name;
    }
    return null;
  }