Reputation: 69
I have a lot of text simmilar to this
Джамал Выбрать...АссистентБухгалтерВедущий специалистВладелецДокторДиректорЗаведующийЗам.директораГл.редакторГл.продавецГл.бухгалтерГен.директорГл.специалстИнженерКадровикПомощникПродавецПоварМенеджерНачальник отделаУправляющийУчредитель 923 230 24 54 922 009 72 00 [email protected]
I only need the email from this line, so [email protected] How do i do this with notepad and regex?
I found this \b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b
But its not excatly wha tim looking for
Upvotes: 2
Views: 12149
Reputation: 174706
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
Upvotes: 6
Reputation: 67968
\S+?@\S+?\.\S+
Try this.This will get the email.See demo.
http://regex101.com/r/iM2wF9/18
Upvotes: 2