Regular Expressions 101

Community Library

Your search did not match anything

Community Library Entry

1

Regular ExpressionOpen Workspace

r"
(?:http(?:s?)://)?(?:[\w]+\.)+[a-zA-Z]+(?::\d{1,5})?
"
gm

Description
Created·2016-02-28 14:51
Type·Match
Flavor·Python

Finda a domain or a url, with ot without a port in a string. Includes http and https

Submitted by Shmuel Blitz
Open Workspace