import re
text = r"""S_9900002127
S_9900000719
S_9900008012"""
print( re.findall(r'0+([1-9]\d*)$', text, re.M) )