I need help with a regex...
I have $info = uid=myuid.name,ou=people,dc=my-dc,dc=fr
I'd like to extract the myuid.name into a group
preg_match("my regex", $info, $match);
In order to get the uid in $match
The last part of $info can change, for example:
,ou=people,dc=my-dc,dc=fr
,ou=people,dc=other-dc,dc=fr
,ou=people,dc=my-dc2,dc=fr
Thanks for your help!