Answers for "python regex digits from string"

1

regex in python to obtain only the string in python

import re
print(" ".join(re.findall("[a-zA-Z]","your string")))
Posted by: Guest on February-26-2021
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.
Posted by: Guest on March-06-2021

Code answers related to "python regex digits from string"

Python Answers by Framework

Browse Popular Code Answers by Language