Advertisement
Guest User

Untitled

a guest
Jan 17th, 2014
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.44 KB | None | 0 0
  1. namespace Exc18Email
  2. {
  3.     class Email
  4.     {
  5.         static void Main(string[] args)
  6.         {
  7.             string text = "Some text dd@yahoo.com more text santiago.vedra@ygmail.co.uk and test_mail@abv.bg";
  8.  
  9.             string[] array = text.Split(' ');
  10.  
  11.             foreach (var item in array)
  12.             {
  13.                 if( item.Contains('@') == true)
  14.                     Console.WriteLine(item);
  15.             }
  16.         }
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement