Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Use re.search, but not re.findall. solution in Clear category for First Word by ArchTauruS
"""Use re.search, but not re.findall.
Since re.findall return all matches in a list, while re.search is just for
this mission.
"""
def first_word(text):
import re
return re.search("[A-z']+", text)[0]
Nov. 8, 2018
Comments: