User to user discussion and support for UltraEdit, UEStudio, UltraCompare, and other IDM applications.

This forum is user-to-user based and not regularly monitored by IDM.
Please see technical support page on how to contact IDM.
2 posts Page 1 of 1
Hi,

I have a file with this structure and 4000 lines:

Code: Select all
Item_Enabled=True                          
Item_ImageIndex=-1                         
Item_State=cbsGrayed                       
Item_Tag=9                                 
Item_Text=46495622201502040100186530       
Item_Enabled=True                         
Item_ImageIndex=-1                         
Item_State=cbsGrayed                       
Item_Tag=9                                 
Item_Text=46495622201502040233458760       
Item_Enabled=True                         
Item_ImageIndex=-1                         
Item_State=cbsChecked                     
Item_Tag=0                                 
Item_Text=46495622201508182249315810

The numbering should increment every 5 lines with this result:

Code: Select all
Item0_Enabled=True                          
Item0_ImageIndex=-1                         
Item0_State=cbsGrayed                       
Item0_Tag=9                                 
Item0_Text=46495622201502040100186530       
Item1_Enabled=True                         
Item1_ImageIndex=-1                         
Item1_State=cbsGrayed                       
Item1_Tag=9                                 
Item1_Text=46495622201502040233458760       
Item2_Enabled=True                         
Item2_ImageIndex=-1                         
Item2_State=cbsChecked                     
Item2_Tag=0                                 
Item2_Text=46495622201508182249315810

How can I do this with UltraEdit?
My own solution:

Per search and replace "^pItem_x" to "^pItem_x" on all items except the "Item_Enabled" I got this list:

Code: Select all
Item_Enabled=True^tItem_ImageIndex=-1^tItem_State=cbsGrayed^tItem_Tag=9^tItem_Text=46495622201502040100186530
Item_Enabled=True^tItem_ImageIndex=-1^tItem_State=cbsGrayed^tItem_Tag=9^tItem_Text=46495622201502040233458760
Item_Enabled=True^tItem_ImageIndex=-1^tItem_State=cbsChecked^tItem_Tag=0^tItem_Text=46495622201508182249315810

Now I could use the standard column numbering after every "Item".

Then a search and replace of ^p to ^p and all is fine.

But it should be a "nice to have" if IDM implements a numbering option "increment counter after every [ xxx ] lines".
2 posts Page 1 of 1
cron