hi!
I'm trying to write regex to get the parent DN. it looks like that:
that part which is not working is of course '
help plz ):
I'm trying to write regex to get the parent DN. it looks like that:
Copy Code
$rx=[regex]'^CN=.*,((?:(?:OU|CN=).*,)*DC=domain,DC=name)$'
that part which is not working is of course '
Copy Code
((?:(?:OU|CN=).*,)*' - i don't know how to define all parts that can be 'OU=whatever,' or 'CN=whatever,'
help plz ):