Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
(?i)\/\/(?:([^\/]+?)\.)?(([^\/]+)\.([A-Z]{2,}))
/
gu
Input 1
1
New
https://forum.keyboardmaestro.com/t/how-can-i-get-only-the-domain-name-from-the-frontend-browser/18727 https://controldesign.com/industrynews/2020/pepperl-fuchs-announces-first-online-summit/ https://controldesign.co.uk/industrynews/2020/pepperl-fuchs-announces-first-online-summit/ https://forum.keyboardmaestro.com.de/t/how-can-i-get-only-the-domain-name-from-the-frontend-browser/18727 https://forum.keyboardmaestro.de/t/how-can-i-get-only-the-domain-name-from-the-frontend-browser/18727 https://someCompany.us
Substitution