import re text = "G231e453m423i6163n443i2431"result = re.sub(r'\d', '', text) print(result) # Output: Gemini
Standard input is empty
Gemini
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!