fork(1) download
  1. import re
  2. thestring = '''----------
  3.  
  4. FT Weekend
  5.  
  6. ----------
  7.  
  8. Why do we run marathons?
  9. Are marathons and cycling races about more than exercise? What does the
  10. literature of endurance tell us about our thirst for self-imposed hardship?
  11. '''
  12. pattern =r"(?s)-+\n.+?\n-+"
  13. print re.sub(pattern, '', thestring)
Success #stdin #stdout 0.01s 7736KB
stdin
Standard input is empty
stdout

Why do we run marathons?
Are marathons and cycling races about more than exercise? What does the 
literature of endurance tell us about our thirst for self-imposed hardship?