Editing my existing Regex
Regular Expressions
1
Posts
1
Posters
1
Views
1
Watching
-
Hi, im relatively new to regex and im trying to match OU from the Distinguished Name in ActiveDirectory. This is my existing regex: (((OU=.*?))?)OU=(?.*?(?=,)) CN=Muster\, Max,[OU=AAD-Sync,OU=IT-Abteilung],[OU=FD] 10,DC=landkreis-Musterstadt,DC=local So far this would match the OU I marked with [] as two separate Matches, does anyone know ow to edit my existing regex that it matches every OU as one Match instead of two separates? Would be lovely if I could get some Help :)