Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (11 sloc) 0.403 kb
import re
bgg_spam = re.compile('(b[bg]g[012\- ]?d?l?[012\- ]?[012\- ]?)', re.IGNORECASE)
words_to_strip = ['afk', 'away', '()', '[]', ' - ']
def norm_name(name):
bgg_spam_match =
if bgg_spam_match:
name = name.replace(, '')
for word in words_to_strip:
name = name.replace(word, '')
return name.strip()
Jump to Line
Something went wrong with that request. Please try again.