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: 466
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 multiple text files to html files with self-defined format? (71%)
How to convert IP addresses in text file into Hexidecimal format? (68%)
How to change text file format with user specified rules? (67%)
How to parse data from the text file and create text with  user specified format? (67%)
How to create a text file including filenames in a folder with specified format? (66%)

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