Author |
Message |
Winner
Pilla Bewarse Username: Winner
Post Number: 384 Registered: 05-2017 Posted From: 54.172.59.33
| Posted on Sunday, June 04, 2017 - 9:44 pm: |
|
Thokkalohdi:
No problem bro. I am a newbie to regEx. Do you suggest any tutorial to start for regEx. |
Thokkalohdi
Pilla Bewarse Username: Thokkalohdi
Post Number: 108 Registered: 04-2015 Posted From: 24.5.236.139
| Posted on Sunday, June 04, 2017 - 9:14 pm: |
|
Winner:
Bhayya.... you just need to fiddle with the regex.. may be your file is different... may be there is a new line... or extra character... |
Winner
Pilla Bewarse Username: Winner
Post Number: 379 Registered: 05-2017 Posted From: 54.172.59.33
| Posted on Sunday, June 04, 2017 - 2:43 pm: |
|
Last post by Andhravodu ani chupistondi, but I don't see his post. Has it been deleted. |
Winner
Pilla Bewarse Username: Winner
Post Number: 374 Registered: 05-2017 Posted From: 96.32.5.39
| Posted on Sunday, June 04, 2017 - 12:50 pm: |
|
Thokkalohdi:screenshots petta.. http://imgur.com/a/6RGrS
It's not working for me bro. Please find my screenshot and advise. http://imgur.com/a/02cQZ |
Thokkalohdi
Pilla Bewarse Username: Thokkalohdi
Post Number: 106 Registered: 04-2015 Posted From: 24.5.236.139
| Posted on Sunday, June 04, 2017 - 12:07 pm: |
|
Ntr_rocks:Tokkal annai, edayina iraga tesi cheptav, anni finger tips meeda pettukuni...em chestu vuntav...ekada pani chestav...konchem devinchandi...
lol... Coolie No.1 annai... idi adi ani teda ledu edaina mosestham... |
Ntr_rocks
Kurra Bewarse Username: Ntr_rocks
Post Number: 1799 Registered: 10-2007 Posted From: 45.43.104.179
| Posted on Sunday, June 04, 2017 - 11:54 am: |
|
Thokkalohdi:
Tokkal annai, edayina iraga tesi cheptav, anni finger tips meeda pettukuni...em chestu vuntav...ekada pani chestav...konchem devinchandi... Pettesaa
|
Thokkalohdi
Pilla Bewarse Username: Thokkalohdi
Post Number: 104 Registered: 04-2015 Posted From: 24.5.236.139
| Posted on Sunday, June 04, 2017 - 11:43 am: |
|
screenshots petta.. http://imgur.com/a/6RGrS |
Thokkalohdi
Pilla Bewarse Username: Thokkalohdi
Post Number: 103 Registered: 04-2015 Posted From: 24.5.236.139
| Posted on Sunday, June 04, 2017 - 11:40 am: |
|
Winner:
$1 is called selector... so regex lo () madyalo unnavi anni $1 lo select chesi pedthadi.... find lo you selected everything to $1 if in replace.. you dont put $1.. then it will just delete the selected string |
Thokkalohdi
Pilla Bewarse Username: Thokkalohdi
Post Number: 102 Registered: 04-2015 Posted From: 24.5.236.139
| Posted on Sunday, June 04, 2017 - 11:38 am: |
|
Winner:
Winner:
babai... find lo put this: {.*?("id" : ".*?").*?}.*?} in replace put this: $1 find and replace |
Winner
Pilla Bewarse Username: Winner
Post Number: 373 Registered: 05-2017 Posted From: 54.172.80.13
| Posted on Sunday, June 04, 2017 - 11:15 am: |
|
Ntr_rocks:^("id" : ".*?")
If I use this expression in find/replace, it removed the Id lines in the file. It did not keep all the ids in the file. My goal is to retrieve all the ids from the file just like in the examples shown here. https://superuser.com/questions/740844/how-to-extract-specific-parts-of-a-large- batch-of-strings |
Ntr_rocks
Kurra Bewarse Username: Ntr_rocks
Post Number: 1796 Registered: 10-2007 Posted From: 45.43.104.179
| Posted on Sunday, June 04, 2017 - 10:00 am: |
|
Winner: It says, Cannot match regular expression ^("id" : ".*?"),$
Bhayya, just tried it in Notepad++, Thokkal annai ichina dantlo last ,$ teste, working...Can you please try it.. ^("id" : ".*?") Pettesaa
|
Winner
Pilla Bewarse Username: Winner
Post Number: 372 Registered: 05-2017 Posted From: 54.172.80.13
| Posted on Sunday, June 04, 2017 - 6:01 am: |
|
Thokkalohdi:^("id" : ".*?"),$
It says, Cannot match regular expression ^("id" : ".*?"),$ |
Thokkalohdi
Pilla Bewarse Username: Thokkalohdi
Post Number: 101 Registered: 04-2015 Posted From: 24.5.236.139
| Posted on Sunday, June 04, 2017 - 12:44 am: |
|
^("id" : ".*?"),$ $1 is the selection for notepad++. if using perl \" to escape the " |
Winner
Pilla Bewarse Username: Winner
Post Number: 371 Registered: 05-2017 Posted From: 54.172.59.33
| Posted on Saturday, June 03, 2017 - 11:54 pm: |
|
Ntr_rocks:
Thanks Rocks. No urgency. It can wait. Thanks for your help. |
Ntr_rocks
Kurra Bewarse Username: Ntr_rocks
Post Number: 1795 Registered: 10-2007 Posted From: 45.43.104.179
| Posted on Saturday, June 03, 2017 - 11:49 pm: |
|
Winner:
ok, will try tomorrow or Monday if u can wait Pettesaa
|
Winner
Pilla Bewarse Username: Winner
Post Number: 370 Registered: 05-2017 Posted From: 54.172.59.33
| Posted on Saturday, June 03, 2017 - 11:44 pm: |
|
I don't want to use any programming language but get this done using TextPad/Notepad++ regex expression. The following is perfectly working. But not for my case. https://superuser.com/questions/740844/how-to-extract-specific-parts-of-a-large- batch-of-strings |
Ntr_rocks
Kurra Bewarse Username: Ntr_rocks
Post Number: 1794 Registered: 10-2007 Posted From: 45.43.104.179
| Posted on Saturday, June 03, 2017 - 11:42 pm: |
|
https://stackoverflow.com/questions/12934699/selecting-fields-from-json-output Is this not a straight answer? Pettesaa
|
Ntr_rocks
Kurra Bewarse Username: Ntr_rocks
Post Number: 1793 Registered: 10-2007 Posted From: 45.43.104.179
| Posted on Saturday, June 03, 2017 - 11:41 pm: |
|
Why do u need regex? Which programming language are you using ? Pettesaa
|
Winner
Pilla Bewarse Username: Winner
Post Number: 369 Registered: 05-2017 Posted From: 54.172.59.33
| Posted on Saturday, June 03, 2017 - 11:32 pm: |
|
I have a text file with multiple snippets of the following. { "action" : "PUT", "payload" : { "Code" : "J0A1WSD1A", "Advanced" : "true", "id" : "S701qOIiIAMG0000001", "title" : "Introduction to Robotics", "tags" : [ "program/entry", "program/advanced", ], "start" : "2017-06-11T13:00:00.000Z", "end" : "2017-07-28T21:00:00.000Z", } } Any idea how I can extract the Id fields from the files using RegEx or any other technique. |