Regular Expressions 101

Community Patterns

There does not seem to be anything here

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 - a month ago