Run
import re pattern = '[a-z]+' string = 'aBC---CAB-eFg_web' flags = re.IGNORECASE result = re.findall(pattern, string, flags) print(result)
Output