Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1129.Advanced search and replace -- How to find the descriptions in text file and enclose them with a pair of tag?

User: Donovan -- 2013-09-12          << 1128  1130 >>
Hits: 3202
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How can I add <blockquote> </blockquote> to the start and end of each description. I have around 210 of these descriptions in a text file. 
Input Sample:
Are Xtend-Life Products Good? 
 
If you want to know whether Xtend-Life products are any good or not, then the best place to find the answers to your questions is by reviewing their customer testimonials. You can find many consumer assessments at their ... 
 
============================================== 
Buy Xtend-Life 
 
Anyone can buy Xtend-Life supplements online and with total confidence. Their products are made using only the highest quality ingredients, and formulated by the company's own qualifie
Output Sample:
Are Xtend-Life Products Good? 
 
<blockquote>If you want to know whether Xtend-Life products are any good or not, then the best place to find the answers to your questions is by reviewing their customer testimonials. You can find many consumer assessments at their ...</blockquote> 
============================================== 
Buy Xtend-Life 
 
<blockquote>Anyone can buy Xtend-Life supplements online and with total confidence. Their products are made using only the highest quality ingredients, and formu
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
We can assume one or more consecutive long lines( >100 characters) to be a block of description, and add tags before and after. so we have following solution: 
1. ctrl-o open text file 
2. ctrl-h open 'replace' dialogue: 
* set 'replace unit' to 'Chars' 
* set 'search for pattern' to: 
 
Note: means the a group of consecutive lines with at least 100 characters 
* set 'replace with pattern' to: 
 
3. click 'replace', done. 
4. ctrl-s save to text file.

Screenshot 1:  Replace_Window


Similar Examples:
How to make multiple copies of a file and rename them from a list? (56%)
How to do simple encryption of a text file by letter to letter remapping? (55%)
How to remove all question mark that enclosed by title tags? (54%)
How to open and display text encoded by Thai Language? (53%)
How to download a list of image files and rename them? (53%)
How to sort a text file by the length of text in each line? (53%)
How to insert a text file into the beginning of multiple text files? (52%)
How to validate many email addresses in a text file and export them? (52%)

Check Demo of Advanced search and replace
Keywords:
210  round  block  quote  before and after  consecutive  onsecutive  quot  desc  cut  lines tags  group lines  add characters to end file  add characters at end  100 lines of text  find and replace add  replace with a group  replace tags