Published
- 1 min read
regex in python to obtain only the string in python
The solution for this is noted below
regex in python to obtain only the string in python
Solution
import re
print(" ".join(re.findall("[a-zA-Z]","your string")))
Try other methods by searching on the site. That is if this doesn’t work