Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

815.Advanced search and replace -- How to convert a text file to specified format?

User: lomboz -- 2011-07-02          << 814  816 >>
Hits: 2833
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
how to convert a text file by a template, thanks!
Input Sample:
txt file

aaa http://wwww.xxx1.com
bbb http://wwww.xxx2.com
ccc http://wwww.xxx3.com
Output Sample:
txt file

<a href="http://wwww.xxx1.com">aaa</a>
<a href="http://wwww.xxx2.com">bbb</a>
<a href="http://wwww.xxx3.com">ccc</a>
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open text file
2. ctrl-h open 'replace' dialog
* set 'replace unit' to 'Line'
* set 'replace with pattern' to:

3. click 'replace', done.
4. ctrl-s save to file.

Screenshot 1:  Replace_Window


Similar Examples:
How to convert the text from hex format to ascii format? (77%)
How to convert each line of a text file to the new format? (74%)
How to convert the text format by user specified rules? (74%)
How to convert pipe separated elements in each line to specified format? (71%)
How to convert multiple text files to html files with self-defined format? (71%)
How to change a file with special format to csv? (69%)
How to join corresponding line of multiple text files with specified format? (69%)
How to convert a duration of seconds to a time format? (68%)

Check Demo of Advanced search and replace
Keywords:
href  a href  specified format  template  how to convert  convert  conver  tem  specified  format  pattern search replace template  replace with template  format convert  search and replace convert  replace template  convert text file search replace  convert text  replace convert