#Pyth, 19 17 14 bytes
Pyth, 19 17 14 bytes
l@jGUTmr0Csd.:
takes a string.
-3 Bytes thanks to @LeakyNun
###Explanation l@jGUTmr0Csd.: UT # the list of digits [0,1,2,...,9] jG # join that on the lowercase alphabet (repetition doesn't matter) Q # implicit input .: # all substrings of the input m # for each of those substrings sd # Convert the string to a base 10 integer C # convert that integer to the character with that number r0 # make that character lowercase l@ # length of the intersection of those two list of chars we generated
Explanation
l@jGUTmr0Csd.:
UT # the list of digits [0,1,2,...,9]
jG # join that on the lowercase alphabet (repetition doesn't matter)
Q # implicit input
.: # all substrings of the input
m # for each of those substrings
sd # Convert the string to a base 10 integer
C # convert that integer to the character with that number
r0 # make that character lowercase
l@ # length of the intersection of those two list of chars we generated