Check if RG is valid format included with x in end
static bool isRG(String rg) => hasMatch(rg, r'(^\d{1,2}).?(\d{3}).?(\d{3})-?(\d{1}|X|x$)');