original_string: public function extract_host( $url ) {
  		$string = (string) $url;
  		if ( preg_match( '@https?://([^/\?#]+)@u', $url, $match ) ) {
  			return $match[1];
  		} else {
  			return $url;
  		}
  	}
code: public function extract_host( $url ) {
  		$string = (string) $url;
  		if ( preg_match( '@https?://([^/\?#]+)@u', $url, $match ) ) {
  			return $match[1];
  		} else {
  			return $url;
  		}
  	}
code_tokens: public function extract_host ( $ url ) { $ string = ( string ) $ url ; if ( preg_match ( '@https?://([^/\?#]+)@u' , $ url , $ match ) ) { return $ match [ 1 ] ; } else { return $ url ; } }
docstring: Extract host value from url
  
  @param string $url
  
  @return string
docstring_tokens: Extract host value from url