| User: editor -- 2008-05-25 << 155 157 >> |
| Hits: 431 |
| Type: Advanced search and replace |
| Search all Advanced search and replace examples |
| Description: |
| How to add some text before each paragraph automatically? |
| Input Sample: |
| Paragraph 1, dsdfsddf sfdsfdsfsd Paragraph 2, ddfdsfdfdffdf sfdsfdsfsdfsdfs |
| Output Sample: |
| (added text)Paragraph 1, dsdfsddf sfdsfdsfsd (added text)Paragraph 2, ddfdsfdfdffdf sfdsfdsfsdfsdfs |
| Answer: |
| Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
| 1. ctrl-o open source file 2. ctrl-h open 'Replace' dialog in 'Replace' page * set 'Replace Unit' to 'Paragraph' * set 'Search for pattern': * set 'Replace with pattern': 3. click 'Replace', ok! Note: by default, the paragraph are delimitered by blank lines. User can change it by modifying 'para start' and 'para end' in 'Settings' page of 'Replace' dialog. |
| Download Script: scripts/156.rst.zip |
Screenshot 1: Replace_Window |
Similar Examples: |
| How to convert all the phrases to the Abbr automatically? (56%) How to convert Roman number to Arabic number automatically? (56%) How to find the 5 largest number from a text file automatically? (56%) How to capitalize the first words of each sentence automatically? (56%) How to add line_no before each line of a text file? (55%) How to detect encoding type of a text file automatically? (55%) How to make html tags for image file list automatically? (54%) How to add a <Return> after each period '.' in text file? (50%) |
Check Demo of Advanced search and replace |
| Keywords: |
| blank lines blank line user paragraph blank automatically automatic automat before delimiter add blank lines search and replace with blank lines set default replace blank lines paragraph pattern search paragraph add text before replace with blank |