Bill,
What Walli explained is the right thing to do. To remove the 2nd phrase, you have to nest the 2 stringreplace functions together:
1. Open your data selection and go to the 'repeat' section
2. Choose Line repeat
3. In the From Line - To line, use the data selector or specify the from and to line (e.g. 21 to 35)
4. Click on the 'Data' section. You should see From line =¤t.line and To line =¤t.line
5. Click on 'Custom data selection'
6. In the string to display, write your data selection for a single line, using ¤t.line as the line number, and nest this data selection within 2 stringreplace calls:
=stringreplace(stringreplace(@(¤t.line,1,80), '-UC',''),'COM','')
7. Set CRLF to False
Explanation of the PlanetPress Talk expression:
A. =@(¤t.line,1,80) displays the current line, from column 1 to 80. ¤t.line is specified in the line repeat
B. =stringreplace(@(¤t.line,1,80), '-UC','') removes all occurences of '-UC' from the selection made in A.
C. =stringreplace(stringreplace(@(¤t.line,1,80), '-UC',''),'COM','') removes all occurences of 'COM' from the string produced in B.
Hope this helps!
Ben