Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. (?<=to |^).*?(?= to|$)
  2.  
  3. string[] names = Regex.Matches("Yuvraj Singh to Nasir Jamshed to Kumar to Shoaib Malik", "(?<=to |^).*?(?= to|$)")
  4. .Cast<Match>()
  5. .Select(m => m.Value)
  6. .ToArray();
  7.  
  8. ([A-Z][w-]*s*)+
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement