I need to replace C: 0 d: 2 d: 1 with C: 0 d: 2 d: 2 in the below content wherein ""MicroSCADA DV DataSource" appears in the previous line.
-
I need to replace C: 0 d: 2 d: 1 with C: 0 d: 2 d: 2 in the below content wherein "“MicroSCADA DV DataSource” appears in the previous line. There are many such instances and I am not able to figure out the needful regular expression to achieve the same. Support from anyone is highly appreciated. I don’t want any other changes.
C"RestoreDS" C"FDScustom" d: 10227248 d: 309 d: 10227248 d: 0 C: 0 d: 2 d: 2 d: c d: 378 d: 10382e08 d: 10403f40 C"CustomDSArgs" C"FDScustom" d: 10227288 d: 309 d: 10227288 d: 10227388 C: 0 d: 3 C"MicroSCADA DV DataSource" d: 309 d: 10227388 d: 10227308 C: 0 d: 2 d: 1 d: 309 d: 10227308 d: 10227348 C: 0 d: 2 d: 0 d: 309 d: 10227348 d: 10227ec8 C: 0 d: 1 0 d: 309 d: 10227ec8 d: 0 C: 0 d: 2 d: 3e8 d: 0 d: 0 d: 1bc d: fdad2c0 d: fdae1f0 C"7" 0 d: 1 d: 1 d: 1 C"RSMNASS_CB11.State.10" d: 103fd1a8 d: 10403f40 d: 1 d: 0 d: 0 d: 4 d: 378 d: 10382f48 d: 10403f40 C"Select" C"FDScustom" d: 0 d: 7 d: 378 d: 103830e8 d: 10403f40 C"CreateDSV" C"FDScustom" d: 0 d: b d: 378 d: 10383108 d: 10403f40 C"WriteDSV" C"FDScustom" d: 10227f08 d: 309 d: 10227f08 d: 10227e88 C: 0 d: 2 d: 2 d: 309 d: 10227e88 d: 0 C: 0 d: 1 0 d: d d: 378 d: 10382f68 d: 10403f40 C"CustomDSVArgs" C"FDScustom" d: 102280c8 d: 309 d: 102280c8 d: 10227a08 C: 0 d: 2 d: 1 d: 309 d: 10227a08 d: 10227f88 C"MicroSCADA DV DataSource" d: 309 d: 10232388 d: 102322c8 C: 0 d: 2 d: 1 d: 309 d: 102322c8 d: 102325c8 C: 0 d: 2 d: 0 d: 309 d: 102325c8 d: 102324c8 C: 0 d: 1 0 d: 309 d: 102324c8 d: 0 C: 0 d: 2 d: 3e8 d: 0 d: 0 d: 1bc d: fda8880 C"MicroSCADA DV DataSource" d: 309 d: 10232b88 d: 102330c8 C: 0 d: 2 d: 1 d: 309 d: 102330c8 d: 10232e48 C: 0 d: 2 d: 0 d: 309 d: 10232e48 d: 10232a88 C: 0 d: 1 0 d: 309 d: 10232a88 d: 0 C: 0 d: 2 d: 3e8 d: 0 d: 0 d: 1bc d: fdac108 d: fdac618 C"%f" 0 d: 1 d: 1 d: 1 C"RSMN ACDB" d: 10401558 d: 10403640 d: 1 d: 0 d: 0 d: 4 d: 378 d: 103868a8 d: 10403640 C"Select" C"FDScustom" d: 0 d: 7 d: 378 d: 103868e8 d: 10403640 C"CreateDSV" C"FDScustom" d: 0 d: b d: 378 d: 103866a8 d: 10403640 C"WriteDSV" C"FDScustom" d: 10232e88 d: 309 d: 10232e88 d: 10232d08 C: 0 d: 2 d: 1 d: 309 d: 10232d08 d: 0 C"MicroSCADA DV DataSource" d: 309 d: 10232c88 d: 10233088 C: 0 d: 2 d: 1 d: 309 d: 10233088 d: 10232dc8 C: 0 d: 2 d: 0 d: 309 d: 10232dc8 d: 102329c8 C: 0 d: 1 0 d: 309 d: 102329c8 d: 0 C: 0 d: 2 d: 3e8 d: 0 d: 0 d: 1bc d: fdad548 d: fdac390 C"%f" 0 d: 1 d: 1 d: 1 C"RSMN DO MCB STATUS" d: 104018d0 d: 10404000 d: 1 d: 0 d: 0 d: 4 d: 378 d: 10386aa8 d: 10404000 C"Select" C"FDScustom" d: 0 d: 7 d: 378 d: 10386ca8 d: 10404000 C"CreateDSV" C"FDScustom" d: 0 d: b d: 378 d: 10386a08 d: 10404000 C"WriteDSV" C"FDScustom" d: 10232e08 d: 309 d: 10232e08 d: 10232a08 C: 0 d: 2 d: 1 d: 309 d: 10232a08 d: 0 C"MicroSCADA DV DataSource" d: 309 d: 10233988 d: 102339c8 C: 0 d: 2 d: 1 d: 309 d: 102339c8 d: 10233d48 C: 0 d: 2 d: 0 d: 309 d: 10233d48 d: 10233f48 C: 0 d: 1 0 d: 309 d: 10233f48 d: 0 C: 0 d: 2 d: 3e8 d: 0 d: 0 d: 1bc d: fdab1d8 d: 0 C"%f" 0 d: 1 d: 1 d: 1 C"RSMN DCDB" d: 10402380 d: 104040c0 d: 1 d: 0 d: 0 d: 4 d: 378 d: 103870a8 d: 104040c0 C"Select" C"FDScustom" d: 0 d: 7 d: 378 d: 10386fe8 d: 104040c0 C"CreateDSV" C"FDScustom" d: 0 d: b d: 378 d: 10387108 d: 104040c0 C"WriteDSV" C"FDScustom" d: 10233a88 d: 309 d: 10233a88 d: 10233a48 C: 0 d: 2 d: 1 d: 309 d: 10233a48 d: 0 -
@Venugopal-MV said in I need to replace C: 0 d: 2 d: 1 with C: 0 d: 2 d: 2 in the below content wherein ""MicroSCADA DV DataSource" appears in the previous line.:
I need to replace C: 0 d: 2 d: 1 with C: 0 d: 2 d: 2 in the below content wherein "“MicroSCADA DV DataSource”
Try this using Regular Expression mode:
Search:^(C"MicroSCADA DV DataSource".+\R)C: +0 +d: +2 +d: +1
Replace:$1C: 0 d: 2 d: 2
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login