import re origional_string = "makeup of organisms.[10] In 1997, while working at the University of Tennessee, Pigliucci received the Theodosius Dobzhansky Prize,[11]" result = re.sub(r'\[ *[0-9]+ *\]', '', origional_string) print(result)
Standard input is empty
makeup of organisms. In 1997, while working at the University of Tennessee, Pigliucci received the Theodosius Dobzhansky Prize,
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!