Answers for "python regex number only"

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
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

Python Answers by Framework

Browse Popular Code Answers by Language