Reputation:
I've this regex for email
^[_a-z0-9-]+(\.[_a-z0-9-]+)*(\+[a-z0-9-]+)?@[a-z0-9-]+(\.[a-z0-9-]+)*$
my test case is johnd@c
but it returned true. What's wrong here?
https://codesandbox.io/s/regex-forked-h7r6wk?file=/src/index.js:180-187
Upvotes: 0
Views: 100