Community Patterns

Community Library Entry

1

Regular Expression
Created·2025-05-15 02:38
Flavor·ECMAScript (JavaScript)

/
(http|https)\:\/\/[a-zA-Z0-9.-]+(\.[a-zA-Z]+)+(\/.*)?
/
gm
Open regex in editor

Description

Regex to match URLs in a string with http and https protocol and optional paths in URL

Submitted by Kaustubh