Guest User

Untitled

a guest
Jan 20th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. (?<=^Final-Recipient: rfc822;)(.*)$
  2.  
  3. grep "(?<=^Final-Recipient: rfc822;)(.*)$" *.bad >> emails.txt
  4.  
  5. start = emailbody.IndexOf("To:");
  6.  
  7. if (start < 0)
  8. start = 0;
  9.  
  10.  
  11. string emailExpression = @"([a-zA-Z0-9_.]+)@([a-zA-Z0-9_.]+).([a-zA-Z]{2,3})";
  12. System.Text.RegularExpressions.Regex regExp = new System.Text.RegularExpressions.Regex(emailExpression);
  13.  
  14. if (regExp.IsMatch(eamilbody, start))
  15.  
  16. {
  17. System.Text.RegularExpressions.Match match = regExp.Match(emailbody, start);
  18. string email = match.Value;
  19.  
  20. }
Add Comment
Please, Sign In to add comment