Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

556.Advanced search and replace -- How to add a number and remove "new line" for each segment separated by "@"?

User: editor -- 2010-07-05          << 555  557 >>
Hits: 333
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to add a number and remove "new line" for each segment separated by "@"?
Input Sample:
Tombstone Territorial Park
==========================


@Dawson, Yukon Canada




@C/O Yukon Parks
P.O. Box 600
Dawson, Yukon Y0B 1G0
Canada

@867-667-5648 Whitehorse Office
867-993-6850 Dawson Office

@Tombstone Territorial Park Web Site

@May-September.

@No Entry Fee Charged

@The Tombstone Mountain area, covering 1,558
square miles, is located in...
Output Sample:
1 Tombstone Territorial Park ==========================
2 Dawson, Yukon Canada
3 C/O Yukon Parks P.O. Box 600 Dawson, Yukon Y0B 1G0 Canada
4 867-667-5648 Whitehorse Office 867-993-6850 Dawson Office
5 Tombstone Territorial Park Web Site
6 May-September.
7 No Entry Fee Charged
8 The Tombstone Mountain area, covering 1,558 square miles, is located in...
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open source text file
2. ctrl-h open replace window
* in 'search for pattern', enter:

* in 'replace with pattern', enter:

3. click 'Replace', done!

Note: 
* if you need loop the number from 1 to 8 repeatly, please change the 'replace with pattern' to:


Screenshot 1:  Replace_Window


Similar Examples:
How to add all numbers by 30 after symbol ":" in each line ? (55%)
How to add a page number after every 40 lines in a text file? (54%)
How to count the number of words that started with "en"? (54%)
How to add the numbers together in every 2 adjacent lines in text file? (53%)
How to batch remove/delete lines started by "address:"? (53%)
How to add a line number at the beginning of each line? (52%)
How to expand all the numbers in the list and seperate them by comma? (51%)
How to add sequence number for each non-blank line of a text file? (51%)

Check Demo of Advanced search and replace
Keywords:
loop  repeat  remove new line  toc  para  new line  calc  cal  new  remove  for loop  remove number in each line  change the number for each  remove line from  add line number  remove number  search by number  add text each line