User: editor -- 2011-09-02 << 846 848 >> |
Hits: 5237 |
Type: Regular expression replace |
Search all Regular expression replace examples |
Description: |
How to remove leading spaces and tabs in each line in multiple text files? |
Input Sample: |
<spaces>line1 line2 <spaces>line3 <spaces>line4 |
Output Sample: |
line1 line2 line3 line4 |
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 file from File Browser to "Batch Runner" window 3. click "Fast Replace" button 4. click "Add" to add a rule: * set 'search' to: click ok 5. check 'reg exp' option, uncheck 'cross line' option. 6. click 'start', done! |
Screenshot 1: Fast_Replace_Window |