通过换行转义
bool validateMNumber1(num, data) {
RegExp dataNum = RegExp(r"^-?[1-9]\d{0,"
"${data}"
"}\$");
return dataNum.hasMatch(num);
}
通过换行转义
bool validateMNumber1(num, data) {
RegExp dataNum = RegExp(r"^-?[1-9]\d{0,"
"${data}"
"}\$");
return dataNum.hasMatch(num);
}