| User: editor -- 2010-12-29 << 685 687 >> |
| Hits: 277 |
| Type: Advanced search and replace |
| Search all Advanced search and replace examples |
| Description: |
| How to add italic tags for all lines that started with hash #? |
| Input Sample: |
| line1 line2 #line3 line4 #line5 |
| Output Sample: |
| line1 line2 <I>#line3</I> line4 <I>#line5</I> |
| Answer: |
| Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
| 1. ctrl-o open source text file 2. ctrl-h open 'replace' window * set 'replace unit' to 'Line' * in 'search for pattern', enter: * in 'replace with pattern', enter: 3. for single file, click 'replace', done! 4. for multiple files, click 'batch...' button to open 'Batch Runner' window, drag multiple files to 'Batch Runner' window, and click 'Batch Replace', done! |
Screenshot 1: Replace_Window |
Similar Examples: |
| How to add first line to the start of each line? (60%) How to delete from FILE A all lines that appear in file B? (58%) How to extract all lines that contain words A and B and C? (58%) How to delete/remove all lines that appearred more than once? (57%) How to remove all c++ comments that started with //? (54%) How to remove all blank lines and lines that started with Name: or Addr:? (54%) How to find all lines in file A that contain words in file B? (53%) How to extract all lines that has more than 2 numbers? (53%) |
Check Demo of Advanced search and replace |
| Keywords: |
| chin lines that start tags tag single lines start multiple files multiple multiple file lines tags replace multiple with single add lines multiple files add lines to multiple files batch add text lines search and replace multiple lines batch search in multiple lines search multiple lines |