isRG static method

bool isRG(
  1. String rg
)

Check if RG is valid format included with x in end

Implementation

static bool isRG(String rg) =>
    hasMatch(rg, r'(^\d{1,2}).?(\d{3}).?(\d{3})-?(\d{1}|X|x$)');