t***s 发帖数: 5 | 1 if i have a string:
"cn=aaa,ou=groups,ou=partners,o=abc.com:cn=bbb,ou=groups,ou=partners,o=abc.c
om:cn=ccc,ou=groups,ou=partners,o=abc.com"
how do i chnage the string to "aaa+bbb+ccc"? note that the number of
cn= here is variable. so could be aaa, aaa+bbb, aaa+bbb+ccc
i am currently
doing this in a very clumsy way (split by :) and then do a
match for cn= till the first comma. is there any mroe elegant
way.. a one-liner instead of my big loop? |
|