Registry / utility / mvdan-xurls

mvdan-xurls

JSON →
library1.1.0gogounverified

Extracts URLs from plain text using regular expressions.

go get github.com/mvdan/xurls
INSTALL
IMPORT
SIG · MVDAN-XURLS
M
mvdan-xurls
utilitygov1.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

xurls
github.com/mvdan/xurls

Extract URLs from a string

package main import ( "fmt" "github.com/mvdan/xurls" ) func main() { urls := xurls.Relaxed.FindAllString("Visit https://example.com", -1) fmt.Println(urls) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
mvdan-xurls — go get mvdan-xurls · libregistry