Regex email validation Python to Javascript

后端 未结 1 1381
感动是毒
感动是毒 2021-01-13 14:34

I\'m having trouble fully understanding this Python 2 regular expression to validate email addresses. I found a great example here.

r\"[^@]+@[^@]+\\.[^@]+\"
         


        
相关标签:
1条回答
  • 2021-01-13 14:39

    Simply convert python regex to Javascript.

    Python: r"[^@]+@[^@]+\.[^@]+"

    Javascript: /[^@]+@[^@]+\.[^@]+/

    0 讨论(0)
提交回复
热议问题