I have the following words:
words = ['001operating', '1002application', '3aaa0225', '-setup', '--setup']
I need to drop any non-alphabetic characters before the word. The expected result is this one:
processed = ['operating', 'application', 'aaa0225', 'setup', 'setup']
This is what I have so far:
import re
processed = []
for w in words:
w = re.sub(r"(?<!\S)", "", w)
processed.append(w)
Any suggestions?