regex digits in string python code example
Example 1: regex in python to obtain only the string in python
import re
print(" ".join(re.findall("[a-zA-Z]","your string")))
Example 2: regex for digits python
[0-9] is not always equivalent to \d. In python3, [0-9] matches only
0123456789 characters, while \d matches [0-9] and other digit characters,
for example Eastern Arabic numerals.