Extract email from text usin notepad++ and regexp

后端 未结 2 1178
日久生厌
日久生厌 2020-12-20 04:19

I have a lot of text simmilar to this

Джамал Выбрать...АссистентБухгалтерВедущий специалистВладелецДокторДиректорЗаведующийЗам.директораГл.редакторГл.продаве         


        
相关标签:
2条回答
  • 2020-12-20 04:53

    You need to add lowercase alphabets range inside the character class or turn on the case insensitive i modifier to match both upper and lowercase alphabets.

    \b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}\b
    

    OR

    (?i)\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b
    

    DEMO

    0 讨论(0)
  • 2020-12-20 04:54
    \S+?@\S+?\.\S+
    

    Try this.This will get the email.See demo.

    http://regex101.com/r/iM2wF9/18

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