Got another now which I’m trying to test of a character is a number or upper case letter. My understanding is the below should work but it’s flagging lowercase too.
The reason why this happens is because you have applied the case-insenitive search flag i. Apply something like /[A-Z0-9]/.test(inputDate) instead when you would like to test whether a single character is a number or an upper case letter.