Search found 30 matches

by srive99
Tue Sep 21, 2010 2:02 pm
Forum: General
Topic: question
Replies: 8
Views: 551

question

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
by srive99
Mon Sep 20, 2010 9:07 pm
Forum: General
Topic: question
Replies: 8
Views: 551

question

Thanks for your reply...

Unfortunately it is not finding the DN's which has special charcters like _ and &, also space.
by srive99
Sat Sep 18, 2010 4:33 pm
Forum: General
Topic: question
Replies: 8
Views: 551

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 ...
by srive99
Fri Sep 17, 2010 8:39 pm
Forum: General
Topic: question
Replies: 8
Views: 551

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 ...
by srive99
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 ...
by srive99
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.
by srive99
Wed Apr 21, 2010 3:43 pm
Forum: General
Topic: how to grab a string
Replies: 16
Views: 618

Thanks for the tip. it did work. You are the man.

Thanks.
by srive99
Fri Apr 16, 2010 9:24 pm
Forum: General
Topic: how to grab a string
Replies: 16
Views: 618

all of them. it says cann't find regular expression. Is there any settings that needs to be changed.
i did something
[X] Regular expression

and

Configure | Preferences | Editor

[X] Use POSIX regular expression syntax

Thanks
by srive99
Fri Apr 16, 2010 8:40 pm
Forum: General
Topic: how to grab a string
Replies: 16
Views: 618

It seems to be something. It worked before but not now, Im just copying and pasting you solution.

I just did everything from the beginning and everything works like charm.

but when I try with different file, with the same input it doesn't work.

Thanks
by srive99
Fri Apr 16, 2010 7:11 pm
Forum: General
Topic: how to grab a string
Replies: 16
Views: 618

OK thanks that did it as I want. Now, to this output I need to add full DN. The first output file is like this... CN=I269972 CN=U260366 CN=M002152 CN=U265165 from this I need following dn: CN=I269972, ou=some, ou=some, o=company changetype: modify add: someattribute someattribute: values dn: CN ...
by srive99
Fri Apr 16, 2010 6:02 pm
Forum: General
Topic: how to grab a string
Replies: 16
Views: 618

OK here is the input.... <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\company\I269972" src-entry-id="53859" timestamp="0#0"> <modify cached-time="20100412171502.280Z ...
by srive99
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 ...
by srive99
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 ...
by srive99
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 ...
by srive99
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 ...