Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Backward Each Word by saklar13
import re
def backward_string_by_word(text: str) -> str:
return re.sub(r'\w+', lambda m: m.group(0)[::-1], text)
Oct. 22, 2020