import re
strings = ['string01_','str_ing02_^','string03_@_', 'string04_1', 'string05_a_','05_+_']
for item in strings:
clean_this = (re.sub(r'[!@#$%^&*<>?_\s]+$', '', item))
print (clean_this)
aW1wb3J0IHJlCnN0cmluZ3MgPSBbJ3N0cmluZzAxXycsJ3N0cl9pbmcwMl9eJywnc3RyaW5nMDNfQF8nLCAnc3RyaW5nMDRfMScsICdzdHJpbmcwNV9hXycsJzA1XytfJ10KCmZvciBpdGVtIGluIHN0cmluZ3M6CiAgY2xlYW5fdGhpcyA9IChyZS5zdWIocidbIUAjJCVeJio8Pj9fXHNdKyQnLCAnJywgaXRlbSkpCiAgcHJpbnQgKGNsZWFuX3RoaXMp