Hello all:
I use a product that generates Java code. Whenever I need to make a change to the generated code, I surround my modified lines with comments, similar to:
//START-MOD: .....
code
code
code
//END-MOD:
Note that a single file can have multiple modifications. I need to identify all occurrences of modified code and list their content.
I have tried this regular expression, created by Mofi in another post:
START-MOD:[~^[]+END-MOD
It does not list the blocks indivudually. Instead it find the first START-MOD then the last END-MOD and list everything in between.
Can someone help me.
Thank in advance, your help greatly appreciated
Daniel Bureau
I use a product that generates Java code. Whenever I need to make a change to the generated code, I surround my modified lines with comments, similar to:
//START-MOD: .....
code
code
code
//END-MOD:
Note that a single file can have multiple modifications. I need to identify all occurrences of modified code and list their content.
I have tried this regular expression, created by Mofi in another post:
START-MOD:[~^[]+END-MOD
It does not list the blocks indivudually. Instead it find the first START-MOD then the last END-MOD and list everything in between.
Can someone help me.
Thank in advance, your help greatly appreciated
Daniel Bureau