Hi,
im trying to extract a substring from a LDAP query output, but I cant figure out how I can extract just the content of the group.
My pattern looks like this:
`CN=(.*?),OU=*.?Department`
The date im running it on looks like this, there are a few more lines like this with different names and departments:
`CN=Firstname Lastname,OU=Department,OU=Company,DC=Company,DC=local`
The data i wish to get is `Firstname Lastname`.