Thanks Paul. However I think I couldnot explain the problem.

The issue is when I have mailid's as well as a part of input stream.

 Input stream ---> $str="ldap:///uid=user1,ou=People,o=test.com,[email protected]
,[email protected],[email protected],ldap:///uid=user2,ou=People,o=test.com
,ldap:///uid=user3,ou=People,o=test.com";

current output
===========
*first = uid=user1,ou=People,o=test.com <http://test.com>,[email protected]
<[email protected]>,[email protected] <[email protected]>,[email protected] <[email protected]>*
first = uid=user2,ou=People,o=test.com
first = uid=user3,ou=People,o=test.com

expected output
============
first=uid=user1,ou=People,o=test.com
[email protected]
[email protected]
[email protected]
first = uid=user2,ou=People,o=test.com
first = uid=user3,ou=People,o=test.com

Regards,
Punit

Reply via email to