Regular Expressions 101

Library entries

7
javascript

Date and time format - ISO 8601

Matches ISO 8601 date formats
Submitted by Ettienne - 7 years ago
6
javascript

Password

no description available
Submitted by anonymous - 9 years ago
6
python

Find consecutive duplicate words

no description available
Submitted by anonymous - 8 years ago
6
javascript

Email with + symbol

email that accepts the plus (+) symbol
Submitted by luckcheese - 8 years ago
6
javascript

HTML img

Grabs all HTML tags
Submitted by Pirate11 - 8 years ago
6
javascript

Email

no description available
Submitted by anonymous - 7 years ago

extract subdomain(if available) or domain from URL

Vote

7

Regular Expression
python

r"
^(http://|https://|http://www\.|https://www\.|www\.)?(www\.(twanda))?(([\w\-]+)?\.?(twanda|))(\.ch|\.com)(:\d+)?/.+$
"
igm

Description

Loading markdown...
Submitted by trevi@twanda.com - 7 years ago