We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
import re
pattern = r'''https?://(?:www.|ww2.)((?!-)[-0-9a-z]+(?<=-)(?:.[-0-9a-z]+(?
htmls = '\n'.join([input() for i in range(int(input()))])
regx = re.compile(pattern, flags=re.X|re.I)
links = regx.findall(htmls)
print(';'.join(sorted(set(links))))
whats the error in this code ,it is giving output as python eevrytime
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Detect the Domain Name
You are viewing a single comment's thread. Return to all comments →
import re pattern = r'''https?://(?:www.|ww2.)((?!-)[-0-9a-z]+(?<=-)(?:.[-0-9a-z]+(?
htmls = '\n'.join([input() for i in range(int(input()))]) regx = re.compile(pattern, flags=re.X|re.I) links = regx.findall(htmls) print(';'.join(sorted(set(links))))
whats the error in this code ,it is giving output as python eevrytime