i have a problem make regex re.search pass a specyfic number of “.” occurrences.
x = re.search(r"^d[d.]+d$, string)
I need conditions: string starts and ends with digits, and dot character occure exactly 3 times.
I need conditions: string starts and ends with digits, and dot character occure exactly 3 times.
New contributor
Tomasz Czerwiec is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.