I would like to obtain the two numbers on this expression:
s= "sfsdfafafadfafafa **34/23**"
I tried this:
import re
re.search("\\*\\*[0-9][0-9]\\/[0-9][0-9]\\*\\*",s)
But Im getting None as an ouput, when at least I was expecting to get the expression.
Edit: Please take into consideration the ** as I would like to take them into account
Edit: The numbers can be between 1 and 6 digits
regex = r"\*\*(\d+)\/(\d+)\*\*"and extract first and second captured group to get the two digits.re.searchtakes two arguments, so it can’t returnNonehere).