Could you please tell me why my regex test fails when I use a lowercased a?
Here is my code:
  var a = "A0201418"
  if (/^A\d{7}$/.test(a)) {
      console.log('=====true');
  } else {
      console.log('false');
  }
Expected output
"A0201418" . true
"a0201418" . true . 
I want a pattern where start with "A" follow with 7 digit number
 
    