Run
import re pattern = '[a-z]+' string = 'abc---cab-efg_web' result = re.findall(pattern, string) print(result)
Output