我想知道 .match 返回什么 - 匹配的字符还是布尔值?
function feinNoRepeat(sender, args)
{
fein = '11-1111111';
atchThis = fein.replace("-","");
rptRegex = '\b(\d)\1+\b';
//would I compare it this way or would I ask if it's true or false?
if (matchThis.match(rptRegex) = matchThis)
{
args.IsValid = false;
}
}