Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Social
Join the Discord community!
Follow me on twitter!
Send me an email
Donate
Donate
Donate through Paypal
Become a Github Sponsor
Info
Info
Find out what's new!
RegEx101 Wiki
Report bugs or make suggestions
What's new?
Loading content...
Close
Regex Editor
Regex Editor
Community Patterns
Community Patterns
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Get help on Discord
Get help on IRC
Order By
Most Recent
Highest Score
Lowest Score
Most upvotes
Most downvotes
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET (C#)
Rust
Sponsors
Community Patterns
Search among 2,300 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Library catalogue (VTECH V-Lib)
Python
Matches entries in a library catalogue.
Submitted by
anonymous
-
5 months ago
2023-07-11 02:22
1
...
112
113
114
115
extract subdomain(if available) or domain from URL
7
8 upvotes, 1 downvotes (score 56.5%) (You must be signed in to vote)
Regular Expression
Python
r"
^
(
http://
|
https://
|
http://www
\.
|
https://www
\.
|
www
\.
)?
(
www
\.
(
twanda
)
)?
(
(
[
\w
\-
]
+
)?
\.
?
(
twanda
|)
)
(
\.
ch
|
\.
com
)
(
:
\d
+
)?
/
.
+
$
"
igm
Open regex in editor
Description
Loading markdown...
Submitted by
trevi@twanda.com
-
8 years ago
2016-04-08 13:05