Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

767.Replace text in multiple files -- How to convert multiple text files to html files with self-defined format?

User: editor -- 2011-04-21          << 766  768 >>
Hits: 363
Type: Replace text in multiple files   
Search all Replace text in multiple files examples
Description:
How to convert multiple text files to html files with specified rules?
Input Sample:
Text File has following lines:
line1
line2
line3
line4
...
Output Sample:
Html File:
<html>
<head>
<title>line1</title>
</head>
<body>
<h1>line2</h1>
line3<br>
line4<br>
....
</body>
</html>
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. open "Tools->Batch Runner" menu
2. drag multiple text files from file browser to "Batch Runner" window
3. set "set output file name" entry to:

4. click "Fast Replace" button
* click "Add", set "Search" to: 
* set "Replace" to:

* click "ok"
* check "Reg Exp" and "Cross Line" option
* click "Start", done.

Screenshot 1:  Batch_Runner_Window


Screenshot 2:  Fast_Replace_Window


Similar Examples:
How to convert multiple text files from DOS format to UNIX format? (73%)
How to convert multiple text files from UNIX format to DOS format? (73%)
How to convert a text file to specified format? (71%)
How to extract and join text from multiple files with user defined format? (68%)
How to convert each line of a text file to the new format? (67%)
How to create a text file including filenames in a folder with specified format? (63%)
How to convert multiple files from one encoding to another with online tool? (61%)
How to convert multiple files from utf8 to GB2312? (61%)

Check Demo of Replace text in multiple files
Keywords:
how to convert multiple te  define  fine  rules  cross line  title  convert  conver  format  fast replace  convert files html files to text  convert multiple files from  convert html to text  convert text to html  specified format  convert text file to html  html format  multiple rules