User: firewolf -- 2012-12-19 << 1037 1039 >> |
Hits: 3047 |
Type: Advanced search and replace |
Search all Advanced search and replace examples |
Description: |
Add a time stamp, and +0.01£¬the first and the last line of each paragragh remain unchanged, subtitles remain unchanged |
Input Sample: |
[00:51.38]abc [00:53.54]xyzy aaafgh [00:55.72]xxxx ui [00:58.04]ff [01:01.11]tty [01:06.83]imbhy aaabbb [01:10.69]www |
Output Sample: |
[00:51.38]abc [00:53.54]xyzy [00:53.55]aaafgh [00:55.72]xxxx [00:55.73]ui [00:58.04]ff [01:01.11]tty [01:06.83]imbhy [01:06.84]aaabbb [01:10.69]www |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
Following procedure will add a timestamp in front of lines without timestamp, the timestamp is 0.01 second ahead of previous timestamp. 1. ctrl-o open text file 2. ctrl-h open 'replace' dialogue * set 'unit' to 'Line' * set 'replace with pattern' to: * click 'advanced' tab, set 'run following for each matched unit' to: 3. click 'replace', done. 4. ctrl-s save to file. |
Screenshot 1: Replace_Window |
Screenshot 2: Replace_Advanced_Window |