Learn R Programming

urlexplorer (version 0.1.0)

extract_port: Extract the port number from URL

Description

Extract the port number from URL

Usage

extract_port(url)

Value

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

Arguments

url

A character vector of URLs.

Examples

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

Run the code above in your browser using DataLab