I want to do something like:
re.match(r'\d{3} {}'.format('test'), '123 test')
However it doesn't work.
I'm only able to do regular string as patter and to escape many re characters, like:
re.match('\\d{{3}} {}'.format('test'), '123 test')
Is there a way I can keep using r'' pattern but also do formatting string?