| User: editor -- 2010-05-24 << 518 520 >> |
| Hits: 384 |
| Type: Text file parser |
| Search all Text file parser examples |
| Description: |
| How to extract all text that enclosed by html tag "strong"? |
| Input Sample: |
| <html> ... <body> ... <strong>this is text 1 to extract</strong> ... <strong>this is text 2 to extract</strong> </body> .. </html> |
| Output Sample: |
| <strong>this is text 1 to extract</strong> <strong>this is text 2 to extract</strong> |
| Answer: |
| Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
| 1. ctrl-o open source text/html file 2. ctrl-h open 'Replace' window * in 'search for pattern' entry, enter: * in 'replace with pattern' entry, enter: * uncheck option of "Print unmatched unit" 3. click "Replace", all text enclosed by <strong> and </strong> will be extracted. |
Similar Examples: |
| How to extract all text enclosed by H1 tag from multiple html files? (66%) How to remove all question mark that enclosed by title tags? (63%) How to remove all text that include variable strings? (60%) How to extract all lines that contain words A and B and C? (59%) How to extract text enclosed by "body" tag from many html files and join together? (58%) How to replace a string that not enclosed by specific html tag? (56%) How to extract all image links from a html file? (56%) How to batch remove all the text that enclosed by a pair of parenthesis? (56%) |
Check Demo of Text file parser |
| Keywords: |
| strong html tag extracte tag unmatched unmatch print text file parser file parser parse extract strong parser strong text enclosed text search and replace search and replace text enclosed in tag html text file parser html html file parser extract html text |