Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jan 5th, 2023
156
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.16 KB
| None
|
0
0
raw
download
clone
embed
print
report
#!/usr/bin/python
#
import re
def domain_name(url):
mystr = re.findall(r'(?<=[/www])\w+(?=\.)', url)
print(mystr)
domain_name("http://google.co.jp")
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
C++ | 38 min ago | 0.29 KB
Untitled
C++ | 42 min ago | 0.29 KB
Untitled
C++ | 43 min ago | 0.29 KB
Untitled
C++ | 56 min ago | 0.29 KB
Untitled
C++ | 1 hour ago | 0.25 KB
Untitled
C++ | 1 hour ago | 0.96 KB
dataNone
JSON | 1 hour ago | 0.64 KB
Untitled
Rust | 2 hours ago | 3.41 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!