Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Simpliest re solution in Clear category for Count Digits by CaptainFest
import re
def count_digits(text: str) -> int:
return len(re.findall(r'\d', text))
July 11, 2020