import re
x = 'STARSHIP_TROOPERS_INVASION_2012_LOCDE'
print re.split('(?<=_\d{4}).', x)[0]
