Advertisement
Guest User

Untitled

a guest
Dec 14th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.29 KB | None | 0 0
  1. public void FindStuff() {
  2.    
  3.     string pattern = @"(=)([A-Z]_)?(\d+|[A-Z_]+)";
  4.  
  5.     string example1 = "cn=R_PREVADZKOVATEL_IOM,ou=roles,ou=upvs,ou=apps,dc=slovensko,dc=sk"
  6.  
  7.     foreach (Match match in Regex.Matches(example1, pattern)) {
  8.         Console.WriteLine(match.Groups[3].Value);
  9.     }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement