Answers for "What is (\d+)/(\d+)"

0

What is (\d+)/(\d+)

>>> import re
>>> exp = re.compile('(\d+)/(\d+)')
>>> foo = re.match(exp,'1234/5678')
>>> foo.groups()
('1234', '5678')
Posted by: Guest on August-06-2021

Browse Popular Code Answers by Language