replacing d regex with 0-9