I am just learning regex and I am having trouble with getting the word from a list
From a list like:
[ "1. hello - jeff", "2. gello - meff", "3. fellow - gef", "12. willow - left"]
I want retrieve the words: "hello", "gello", "fellow", and "willow"
Here is my simplified code so far
for i in [ARRAY OF LISTED WORDS]:
word = re.findall(r'^((?![0-9]?[0-9]. ))\w+', i)
print(word)
Honestly tried a lot of combinations and couldn't get a good article online that I understood. Thanks in advance!