extract_port: Extract the port number from URL

View source: R/extract.R

extract_portR Documentation

Extract the port number from URL

Description

Extract the port number from URL

Usage

extract_port(url)

Arguments

url

A character vector of URLs.

Value

A character vector containing the port number from each URL, if specified.

Examples

extract_port(c("http://example.com:8080"))

urlexplorer documentation built on Aug. 8, 2025, 7:29 p.m.