def recapitalize(text):
     """Recapitalizes text, placing caps after end-of-sentence punctuation."""
     text = text.lower()
     text = re_caps.sub(lambda x: x.group(1) + x.group(2).upper(), text)
     return text
Recapitalizes text, placing caps after end-of-sentence punctuation.
recipes/Python/578796_Recapitalize_word_beginning_every/recipe-578796.py