Regular Expressions 101

Community Patterns

Your search did not match anything

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

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

Description

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

Submitted by Kaustubh - 2 months ago