"Untitled" By gando (https://pastebin.com/u/gando) URL: https://pastebin.com/8sW5v8h5 Created on: Monday 2nd of May 2011 04:36:40 PM CDT Retrieved on: Saturday 31 of October 2020 07:59:19 AM UTC import re from urllib import urlopen totalBans = 0 #uniqueBans = 0 regex = r'(\bSTEAM_[0-1]:[0-1]:(\d+)\b).\*)' # patlen = len((\bSTEAM_[0-1]:[0-1]:(\d+)\b).*) webpage = urlopen('http://74.63.239.234/banlist.txt') def num_groups(regex) : m = re.search(regex, webpage) return re.compile(regex).groups print m