import retest_str = "%$##@P^&#!)00000R{]]]////O.......G\"\"\"\"\"R;;$#!*%&#*A/////847M"pattern = r'[^A-Z]+'print(re.sub(pattern, '', test_str))
Standard input is empty
PROGRAM
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!