Page 1 of 1

Replace in file with 10 000 lines

Posted: Mon Aug 20, 2007 9:36 am
by zootycoonvn
I have 1 file txt have 10 000 line.
Such as :
125---Deborah---Walker---KOKO---103 Ashmore Drive
127---Dennis---Heymans---------KOKO---------226 Maryland
128---Sidney---Meyers---------Tomato---Sugare---------5015 St. Croix Ave
129---Kim---Crump---------KOKO---------231 Lakeview
130---lori---curreri---------Meal---Salt---------27 darwin road

Sult :
CANT---125---Deborah---Walker---KOKO---103 Ashmore Drive
CANT---127---Dennis---Heymans---------KOKO---------226 Maryland
128---Sidney---Meyers---------Tomato---Sugare---------5015 St. Croix Ave
CANT---129---Kim---Crump---------KOKO---------231 Lakeview
130---lori---curreri---------Meal---Salt---------27 darwin road

Or Sult :
KOKO---103 Ashmore Drive
KOKO---------226 Maryland
128---Sidney---Meyers---------Tomato---Sugare---------5015 St. Croix Ave
KOKO---------231 Lakeview
130---lori---curreri---------Meal---Salt---------27 darwin road

Plzz help me.
Thanks.

Re: Replace in file with 10 000 lines

Posted: Mon Aug 20, 2007 11:22 am
by Abacre
For the first solution you should use the following:

Go to main menu - Action - Options - Batch Replace
check "Modifier M"
uncheck "Modifier S"
uncheck "Modifier G"

Go to Batch replace tab, check on "Use regular expressions".
Put into the grid, search for:
^(.*-KOKO)

Replace with:
CANT---$1

That's all I verified it works perfectly.

Re: Replace in file with 10 000 lines

Posted: Tue Aug 21, 2007 6:23 am
by zootycoonvn
Thanks very much.