Extract all email addresses from bulk text using jquery

前端 未结 7 1553
北海茫月
北海茫月 2020-11-28 06:09

I\'m having the this text below:

sdabhikagathara@rediffmail.com, \"assdsdf\" , \"rodnsdfald ferdfnson\" 

        
7条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-28 06:52

     const = regex = /\S+[a-z0-9]@[a-z0-9\.]+/img
    "hello sean@example.com how are you? do you know bob@example.com?".match(regex)
    

提交回复
热议问题