You are viewing a single comment's thread. Return to all comments →
import re pattern = r'<a href="([^"]*)"[^>]*>(?:<[^>]+>)*\s*([^<]*)' for _ in range( int(input()) ): matches = re.findall(pattern, input()) for match in matches: print('{},{}'.format(match[0], match[1]))
Seems like cookies are disabled on this browser, please enable them to open this website
Detect HTML links
You are viewing a single comment's thread. Return to all comments →