I have following code in java script
var regexp = /\$[A-Z]+[0-9]+/g;
for (var i = 0; i < 6; i++) {
if (regexp.test("$A1")) {
console.log("Matched");
}
else {
console.log("Unmatched");
}
}
Please run it on your browser console. It will print alternative Matched and Unmatched. Can anyone tell the reason for it.