threeDigit top-level property

RegExp threeDigit
getter/setter pair

A regular expression that matches exactly 3 digits.

Commonly used for validating short numeric codes such as postal codes in countries like Iceland (e.g., 101, 750, etc.).

Example of a valid match:

  • 123

Example of an invalid match:

  • 12
  • 1234
  • 12a

Implementation

RegExp threeDigit = RegExp(threeDigitStr);