in reply to specific numbers of digits

This is what you want:

/^\d{5}$/