Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Python

r"
https?://(www\.)?([a-zA-Z0-9]+)(\.[a-zA-Z0-9.-]+)
"
gm

Description

Get domain name from URL

Submitted by anonymous - 3 years ago