Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1121.Text file parser -- How to extract first 55 characters after first ''' from multiple files?

User: Poslovni Forum -- 2013-08-27          << 1120  1122 >>
Hits: 1236
Type: Text file parser   
Search all Text file parser examples
Description:
How to extract first 55 characters from multiple files (01.txt, 02.txt, etc...)
after first ''' (ignore second ''') and save result in new text file?
Input Sample:
(Sample 01.txt)
INFO
*dancer
*[[Maverick Records|Maverick]]

'''Madonna Louise Ciccone''' born 
August 16, 1958.

The Virgin Tour.
Drowned World Tour.

Re-Invention World Tour.
Etc, etc..
Output Sample:
'''Madonna Louise Ciccone''' born August 
16, 1958. The Virgin Tour. Drowned 
World...
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 "windows file browser" to "batch runner" window
3. click "Fast Replace" button open "Fast Replace" window
4. click "add" to add new rule
* set "search" to :

* set "replace" to:

* click "ok"
5. check option of "Reg exp", "Cross line" and "Extract"
6. click "start", and click "output to single file" button, and select the output file, done!

Screenshot 1:  Fast_Replace_Window


Similar Examples:
How to extract first 55 characters form multiple .txt.files? (82%)
How to extract all lines with more than 30 characters from multiple files? (68%)
How to replace the second character of every line to 4 in multiple files? (66%)
How to extract last 100 lines from multiple files? (64%)
How to remove a string of characters from multiple filenames? (61%)
How to batch change format of multiple files? (60%)
How to extract all c++ comments from multiple cpp files? (59%)
How to extract and remove common lines from multiple files? (59%)

Check Demo of Text file parser
Keywords:
extract first  output to single file  ignore  second  cross line  after  result  single  single file  characters  batch file replace first characters  batch file to extract first line from the file  extract first line from multiple files  extract first line multiple files  batch first characters  extract first line text from multiple file batch  replace multiple characters in text  batch replace text in file characters