tone007:
--------------------------------------------------------------------------------
Hey thanks for this tip on the help file. I'll go through this. Here is an
example of the file I have:

COMPDAT
W1      18      1       1       1       OPEN    1*      
4.452451E-003   2.438400E-001   5.035279E-001   0.000000E+000   1*      Z       
5.214233E+001   /
W1      19      1       1       1       OPEN    1*      
4.532991E-003   2.438400E-001   5.061100E-001   0.000000E+000   1*      Z       
4.827184E+001   /
...
...
COMPDAT
W1      18      1       1       1       OPEN    1*      
4.452451E-003   2.438400E-001   5.035279E-001   0.000000E+000   1*      Z       
5.214233E+001   /
...
/

c.a. 3000 times
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
And I need to change this to:
...
COMPDAT
W1      18      1       1       1       OPEN    1*      
4.452451E-003   2.438400E-001   5.035279E-001   0.000000E+000   1*      Z       
5.214233E+001   /

/

WCONPROD
W1      STOP    1*      1*      1*      1*      1*      1*      /
/

...
Appreciate any response on how to solve this.

cheers
tone
--------------------------------------------------------------------------------

Hi, I'm afraid, I couldn't find anzy viable solution for this task using
PhHReplace or PSPad ingeneral; I guess some specialised software might be mor
suitable for tasks like this.
Just to make sure I underestood well, you want to reduce some kind of data
section between 
"COMPDAT"
and
"/" - single slash on the line
so that only the first two lines from this section are retained - is it a
correct interpretation?
Anyway, you may check the "List" and "list not matching" options of the search
dialog, but I'm not sure, if it is possible to specify excluding regex for all
not wanted lines ...
Sorry for not beeing able to help more effectively and specifically...
vbr

-- 
<http://forum.pspad.com/read.php?2,34061,47170>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem