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.
This regex:
re.compile('([\da-f]{1,4}:){7}([\da-f]{1,4})', re.I)
doesn't work on your python 3 (not even on decimal-digits-only addresses). It works on python 3.4 on windows. On your system I had to remove re.I flag to make it work.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
IP Address Validation
You are viewing a single comment's thread. Return to all comments →
This regex: re.compile('([\da-f]{1,4}:){7}([\da-f]{1,4})', re.I) doesn't work on your python 3 (not even on decimal-digits-only addresses). It works on python 3.4 on windows. On your system I had to remove re.I flag to make it work.