EmEditor (text editor) Forum Index
   Questions and Answers about EmEditor Core
     check group status
Register To Post

Flat Previous Topic | Next Topic
Poster Thread
user
Posted on: 5/3/2012 7:24 am
Home away from home
Joined: 9/29/2006
From:
Posts: 212
check group status
hello!

can anyone help me achieve this please (I dont know if regex or macro or anything else is the appropriate way):

I have a text with many lines in this format:

GROUP1{TAB}ITEM1{TAB}SENT
GROUP1{TAB}ITEM2{TAB}SENT
GROUP2{TAB}ITEM3{TAB}SENT
GROUP2{TAB}ITEM4{TAB}NOT SENT
GROUP2{TAB}ITEM5{TAB}SENT

GROUP1, GROUP2, etc are multidigit numbers

ITEM1, ITEM2, etc are any kind of characters sequence, including TABs, spaces, etc

the logic is that if in a GROUP, there is a single or more ITEM that is NOT SENT, then the whole GROUP must be marked as NOT SENT

if all items of a GROUP are SENT, then the GROUP is marked as SENT

so I want, with a click, to transform the above text into:

GROUP1{TAB}SENT
GROUP2{TAB}NOT SENT

any solution?

thanks!
Flat Previous Topic | Next Topic


Subject Poster Date
 » check group status user 5/3/2012 7:24 am
     Re: check group status user 5/7/2012 11:55 pm
     Re: check group status Stefan 5/8/2012 1:03 am
       Re: check group status user 5/8/2012 9:47 am
         Reg Ex search and replace macro Stefan 5/8/2012 10:36 am

Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文