| User: editor -- 2010-02-26 |
| Hits: 165 |
| Type: Regular expression replace |
| Search all Regular expression replace examples |
| Description: |
| How to add html tag of "strong" for each pair of "bold" tags? |
| Input Sample: |
| <html> ... <b>replace</b> ... <b>search</b> <b>regular expression</b> ... |
| Output Sample: |
| <html> ... <strong><b>replace</b></strong> ... <strong><b>search</b></strong> <strong><b>regular expression</b></strong> ... |
| Answer: |
| Hint: You need to Download and install "Replace Pioneer" to finish following steps. |
| 1. ctrl-o open html file 2. ctrl-h open replace window * in 'search for pattern', enter: * in 'Replace with pattern', enter: 3. click 'Replace', done! |
| Download Script: scripts/432.rst.zip |
Similar Examples: |
| How to enclose all the odd number of lines with a pair of tags? (51%) How to batch rename html files to the content that between a pair of h2 tags? (51%) How to add a number and remove "new line" for each segment separated by "@"? (49%) How to add a <BR> at the end of each line? (49%) How to add a semicolon at the end of each line? (48%) How to add a number in each line indicating number of words in this line? (47%) How to delete the first word in each line in a text file? (47%) How to change each pair of single quote to parenthesis? (46%) |
Check Demo of Regular expression replace |