I need a regex which will allow only A-Z, a-z, 0-9, the _ character, and dot (.) in the input.
I tried:
[A-Za-z0-9_.]
But, it did not
regex: /^[a-zA-Z0-9_.]$/i
This works