Answers for "regex python get number"

2

python regex numbers only

import re
re.compile(r'[/d]+') 
# /d refers to any digit
# use other regex patters for ore modifcations
# This can extract the numbers from the regex
Posted by: Guest on February-16-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

Python Answers by Framework

Browse Popular Code Answers by Language