Regular expressions are weird and scary to me, but this seems pretty simple.
I'm trying to chunk through an LDAP domain name. An example string would be:
Code: Select all
cn=ART999,ou=testobject,o=UniversityThe regular expression I've built so far goes like this:
Code: Select all
$name = split("cn=їa-zA-Z]{3}ї0-9]{3}",$passed_object_name);For some reason, $name[1] will get everything after the match, but $name[0] is empty. So from what I can figure, split() is finding the match, just not putting it in $name correctly. Any thoughts? Thanks.