Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void FindStuff() {
- string pattern = @"(=)([A-Z]_)?(\d+|[A-Z_]+)";
- string example1 = "cn=R_PREVADZKOVATEL_IOM,ou=roles,ou=upvs,ou=apps,dc=slovensko,dc=sk";
- foreach (Match match in Regex.Matches(example1, pattern)) {
- Console.WriteLine(match.Groups[3].Value);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement