Help us shape the future of Go! Take the 2026 Go Developer Survey

xurls

package module
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2015 License: BSD-3-Clause Imports: 1 Imported by: 375

README

xurls

Regex expressions to extract urls from plain text.

go get github.com/mvdan/xurls
Command-line utilities
xurls

Reads plain text from stdin and prints one extracted url per line.

go get github.com/mvdan/xurls/cmd/xurls

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WebURL = regexp.MustCompile(webURL)
	Email  = regexp.MustCompile(email)
	All    = regexp.MustCompile(all)
)

Regex expressions that match various kinds of urls and addresses

View Source
var PseudoTLDs = []string{
	`bit`,
	`exit`,
	`i2p`,
	`local`,
	`onion`,
}

PseudoTLDs is a sorted list of some widely used unofficial TLDs

Sources:

View Source
var TLDs = []string{}/* 1101 elements not displayed */

TLDs is a sorted list of all public top-level domains

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
cmd
xurls command
tools
tldsgen command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL