firstGroupPattern property

RegExp firstGroupPattern
final

This was originally set to $1 but there are some countries for which the first group is not used in the national pattern (e.g. Argentina) so the $1 group does not match correctly. Therefore, we use \d, so that the first group actually used in the pattern will be matched.

Implementation

static final RegExp firstGroupPattern = RegExp(r'\$(\d)');