I am getting the below console warning for this regex pattern:
^[a-zA-Z0-9+_.-]+@[a-zA-Z0-9]+\\.[a-zA-Z0-9]+$
Pattern attribute value
^[a-zA-Z0-9+_.-]+@[a-zA-Z0-9]+\.[a-zA-Z0-9]+$
is valid with the RegExpu
flag, but not with thev
flag: Uncaught SyntaxError: Invalid regular expression:/^[a-zA-Z0-9+_.-]+@[a-zA-Z0-9]+\
.[a-zA-Z0-9]+$/v:
Invalid character in character class.
I can not see how to create a valid regex patter for this warning. Please, could somebody explain the error and how to resolve it?
Tried looking at documentation, but could not see how to make it valid for the v
flag