Menu
I don’t know why my ‘re.test’ gives different result each times.
>
re = /^([0-9A-Za-z-_])*$/g;
/^([0-9A-Za-z-
> re.test(“v3”)
true
> re.test(“v3”)
false
> re.test(“v3”)
true
> re.test(“v3”)
false
> re.test(“v3”)
true
> re.test(“v3”)
false
I know the re show be /^([0-9A-Za-z-_])*$/, but the result is weird.