Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
re search solution in Clear category for First Word by timqsh
import re
def first_word(text: str) -> str:
"""
returns the first word in a given text.
"""
return re.search("[\w']+", text)[0]
Dec. 29, 2018
Comments: