python regex letter code example Example: regex in python to obtain only the string in python import re print(" ".join(re.findall("[a-zA-Z]","your string")))