Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
(http(s)?:[/]{2})?([a-z0-9][a-z0-9\-]+.)+([a-z0-9\-])+
/
g
Input 1
New
http://aaa.com.tw https://aa-a.com.tw http://aaa.com https://aaa.com aaa.com aaa.com.tw
Extraction
http://aaa.com.tw https://aa-a.com.tw http://aaa.com https://aaa.com aaa.com aaa.com.tw