phoneNumberRegExp property

RegExp phoneNumberRegExp
final

Regular expression pattern to validate phone numbers with the country code +375 (Belarus).

This pattern matches strings that represent a valid Belarusian phone number with the country code +375 followed by 9 digits.

Example:

static final RegExp phoneNumberRegExp = RegExp(r'^\+375\d{9}$');
  • Matches: '+375291234567', '+375251234567', '+375441234567'
  • Does not match: '375291234567', '1234567890', '+37512345678'

Implementation

static final RegExp phoneNumberRegExp = RegExp(r'^\+375\d{9}$');