regex extract email from strings

前端 未结 7 1483
陌清茗
陌清茗 2020-12-01 16:25

I want to know if by using regular expressions I am able to extract emails from the following strings?

The following RE pattern is .*@.*match with all st

7条回答
  •  时光说笑
    2020-12-01 17:00

    Hope this will work.

    [\w\.]+\@[\w]+(?:\.[\w]{3}|\.[\w]{2}\.[\w]{2})\b

    Regex Demo

提交回复
热议问题