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