1 2 3 4
import re s = 'this =- is , bad ! text #$%^123%^' print(re.sub(r'[^a-zA-Zа-яА-ЯёЁ]', ' ', s))