Detect the Domain Name

  • + 0 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