fork download
  1. import re
  2. text = r"""S_9900002127
  3. S_9900000719
  4. S_9900008012"""
  5. print( re.findall(r'0+([1-9]\d*)$', text, re.M) )
Success #stdin #stdout 0.03s 9488KB
stdin
Standard input is empty
stdout
['2127', '719', '8012']