Regular Expressions 101

Community Patterns

1

loyal

PCRE2 (PHP >=7.3)
loyal
Submitted by anonymous - 3 days ago
1

named capture

PCRE2 (PHP >=7.3)
simple named capture
Submitted by Gene - 4 days ago
1

extract url

PCRE2 (PHP >=7.3)
extract url
Submitted by anonymous - 17 days ago

extract subdomain(if available) or domain from URL

8

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 - 8 years ago