Community Patterns

Community Library Entry

0

Regular Expression
Created·2023-01-03 09:14
Updated·2023-01-03 09:14
Flavor·Java

"
(?<scheme>https?|s?ftp|wss?|git):\/\/(?<subDomain>[a-z0-9-]{1,63}\.(?:[a-z0-9-]{1,63}\.)*)?(?<domain>[a-z0-9-]{1,256})[.](?<tld>[a-z0-9]+)(?::(?<port>[0-9]{1,5}))?(?<path>\/.*/?)?
"
gm
Open regex in editor

Description

The link matcher regex currently matches the most common types of links.

*Removed other links

Submitted by IkeVoodoo