I am currently attempting to verify whether a given string contains only uppercase letters, numbers, and underscores by utilizing the pattern matching approach with /[A-Z0-9_]*/
.
Despite this, executing the following code results in a return of true
:
/[A-Z0-9_]*/.test("AJjdada")
I am unsure if the regex pattern I have applied is accurate. Can someone confirm or correct it?