\d{4}

does that mean a 4 digit number?

if so, how can i make it so it can be a 1/2 digit number