import restring= '#$#&^&#$@||||123515'string = re.sub(r'[^a-zA-Z0-9]', '', string)print(string)
Standard input is empty
123515
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!