import re theatre = 'Regal Crown Center Stadium 14' output = re.sub(r'[a-z ]+', '', theatre) print(output)
Standard input is empty
RCCS14
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!