This my expression
(\w+\.)*\w+\s*(@|\({1}\s*at\s*\){1}|\s+at\s+){1}\s*(\S{2,3}\.)?(\w+)(\s*dot\s*|\s*\.*\s*)(com|org|net|edu|gov|mil|biz|info|mobi|name|aero|asia|jobs|museum|ru)\b
gives ombe@cs.name.edu from l@ombe@cs.name.edu which is wrong
I need to exclude l@ombe@cs.name.edu from possible variants
I have developed this regex to extract emails out of a variety of obfuscated strings rather than validate, as a part of my home assignment. Stuck on l@ombe@cs.name.edu test.
Would you please help me?
Redefenition:
Expression:
(\w+)@(\w+)\.name\.edu
2 strings:
- name@name1@cs.name.edu
- name2@cs.name.edu
As a result a get:
name1@cs.name.edu and name2@cs.name.edu
1 part mustn't be included at all.