Looking for a regex to match a gmail plus address

前端 未结 7 1416
梦如初夏
梦如初夏 2021-01-25 08:25

Im using this currently :

/^(.*)\\+(.*)@gmail.com/

(I\'m capturing the text before and after the plus sign in a group)

and it works in most

7条回答
  •  情话喂你
    2021-01-25 08:58

    you need to escape the + sign : /^(.+?)\++(.+?)@gmail.com/

    EDIT : your post was misformatted : your + is already escaped

提交回复
热议问题