Validate Phone Number pattern

You have a requirement to add a bank checking account number field to a view. Routing numbers must contain nine digits. How would you configure the field to support this requirement? (Choose One)

A. Use a decimal property type and make the field required.

B. Set the minimum and maximum values to 9 in a text field.

C. In an edit validate rule, configure a function to test for a routing number pattern.

D. Use an edit validate rule that validates the routing number pattern.

I think the answer is B since there is no pattern involved correct? Had there been a pattern involved in bank account number like first 2 digits followed by -(hyphen) etc then we can use edit validate rule. is my understanding correct?