import rex = 'STARSHIP_TROOPERS_INVASION_2012_LOCDE'print re.split('(?<=_\d{4}).', x)[0]
Standard input is empty
STARSHIP_TROOPERS_INVASION_2012
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!