import retext = "U012034"print( re.sub(r'^\D*0*', '', text) )
Standard input is empty
12034
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!