fork download
  1. import re
  2.  
  3. origional_string = "makeup of organisms.[10] In 1997, while working at the University of Tennessee, Pigliucci received the Theodosius Dobzhansky Prize,[11]"
  4.  
  5. result = re.sub(r'\[ *[0-9]+ *\]', '', origional_string)
  6.  
  7. print(result)
Success #stdin #stdout 0.03s 9440KB
stdin
Standard input is empty
stdout
makeup of organisms. In 1997, while working at the University of Tennessee, Pigliucci received the Theodosius Dobzhansky Prize,