1 2 3 4 5 6 7 8
#-*- coding: utf-8 -*- import re import sys RE = re.compile("(http://.*/wp-content/themes/.*?/)") with open(sys.argv[1]) as f: for x in RE.findall(f.read()): print x