Thanks for your reply,
it still not working for me. It says "can not find regular expression". I tried with whole DN and also with only CN part.
Thanks
Search found 30 matches
question
Thanks for your reply...
Unfortunately it is not finding the DN's which has special charcters like _ and &, also space.
Unfortunately it is not finding the DN's which has special charcters like _ and &, also space.
question
it works great. Thanks. But I found some thing that this regular expression does not work if "dn" has some speacial charcters like below. dn: cn=abc xyz_qra, ou=myorg,o=org dn: cn=ab xy lcp & bt -grp,ou=myorg,o=org dn: cn=xy bmn as & ss & ss-feo,ou=myorg,o=org I think, I would need everything until ...
question
hi all, I'm going to need to work a lot with texpad and I need some help with it. I have bunch (thousands)of ldap dns like below dn: cn=abc, ou=xyz, o=org and I want to add couple of lines to those each dns like below dn: cn=abc, ou=xyz, o=org objectClass: user objectClass: Top Also, I need to grab ...
- Tue Aug 10, 2010 2:55 pm
- Forum: General
- Topic: Repalce string
- Replies: 2
- Views: 278
replace after hyphen
It looks like this one worked for me ^([^-].*)- But I need other one like if I have string like some-some-some-somthing It finds "some-some-some-" and I replace with null. But I want now is it should find "-some-some-somthing" and I need to replace that with null. Any one have an idea how i can do ...
- Fri Aug 06, 2010 4:43 pm
- Forum: General
- Topic: Repalce string
- Replies: 2
- Views: 278
Repalce string
Hi All, I have a string as follows.. something-somenubmer-somethingelse_some I wanted to use "replaceall" to remove untill second hyphen (including hyphen). Out put should be as below... "somethingelse_some" since I have bunch of strings, I'm not getting, how I can do with regular expression.
- Wed Apr 21, 2010 3:43 pm
- Forum: General
- Topic: how to grab a string
- Replies: 16
- Views: 618
- Fri Apr 16, 2010 9:24 pm
- Forum: General
- Topic: how to grab a string
- Replies: 16
- Views: 618
- Fri Apr 16, 2010 8:40 pm
- Forum: General
- Topic: how to grab a string
- Replies: 16
- Views: 618
- Fri Apr 16, 2010 7:11 pm
- Forum: General
- Topic: how to grab a string
- Replies: 16
- Views: 618
- Fri Apr 16, 2010 6:02 pm
- Forum: General
- Topic: how to grab a string
- Replies: 16
- Views: 618
- Fri Apr 16, 2010 5:13 pm
- Forum: General
- Topic: how to grab a string
- Replies: 16
- Views: 618
I think the replacement will work but the problem is, in the input file there is big difference in the users like below... <modify cached-time="20100412171458.455Z" class-name="User" event-id="JMS iTIM Driver#8287298363575512505" qualified-src-dn="O=some\ou=company\CN=I269972" src-dn="\TREE\some ...
- Fri Apr 16, 2010 4:33 pm
- Forum: General
- Topic: how to grab a string
- Replies: 16
- Views: 618
OK I just want to copy "CN=someuser" from the input I given in previous, to other file. or instead of copying to other file, leave the CN=someuser and remove the rest of from input file. The one which you give me, is just replacing with full DN. I dont need other stuff from input file as I just need ...
- Fri Apr 16, 2010 3:44 pm
- Forum: General
- Topic: how to grab a string
- Replies: 16
- Views: 618
Thanks for your reply. Here is the input i have... <modify cached-time="20100412173739.761Z" class-name="User" event-id="pwd-subscribe" qualified-src-dn="O=some\OU=company\CN=I266668" src-dn="\TREE\some\company\I266668" src-entry-id="50207" timestamp="0#0"> from this I need only "cn=*" part. and ...
- Fri Apr 16, 2010 1:53 pm
- Forum: General
- Topic: how to grab a string
- Replies: 16
- Views: 618
how to grab a string
hi all, I just have an import (more than 50k lines) from ldap directory and I need to grab just usernames. The user name starts with "cn=". I just need this part. I also need, once I get the CN=usernames from the file, I want to add some context like following.... cn=username, ou=some, o=company ...