User: Poslovni Forum -- 2013-08-27 << 1120 1122 >> |
Hits: 3154 |
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 |