I need to write a regular expression to check for valid bank account number format of major banks in India. Does anyone know what regular expression check should be? Perhaps I just check to make sure all characters are digits?
RBI dictates certain rules like you've mentioned over Indian Bank Account Number structures (9 - 18).
Indian Bank Account Number Validation Regex:
^\d{9,18}$
A better way to validate would be to select the right bank and then have checks in place as per the bank which have been outlined and analyzed by the RBI here.