| User: editor -- 2008-10-19 |
| Hits: 192 |
| Type: Text file parser |
| Search all Text file parser examples |
| Description: |
| How to extract lines containing only name and address? |
| Input Sample: |
| name: n1 age: 18 address: addr1 phone: 12345678 name: n2 age: 32 address: addr2 phone: 33332222 ... |
| Output Sample: |
| name: n1 address: addr1 name: n2 address: addr2 ... |
| Answer: |
| Hint: You need to Download and install "Replace Pioneer" to finish following steps. |
| 1. ctrl-o open source file. 2. ctrl-h open 'Replace' dialog, in 'Replace' window, * set 'Replace Unit' to 'Line' * fill in 'Search for pattern': * fill in 'Replace with Pattern': * uncheck 'Print unmatched units' option 3. click 'Replace', finish. |
| Download Script: scripts/283.rst.zip |
Similar Examples: |
| How to extract all lines that contain A, but not any of B C D? (62%) How to extract all lines that contain words A and B and C? (61%) How to extract all lines longer than 80 characters from a text file? (56%) How to remove all folders in a list containg folders and files? (53%) How to remove all lines that contains more than one word? (53%) How to sort many lines by comparing the second word in each line? (53%) How to extract all email addresses from many text files? (52%) How to extract all the links and images from many web page files? (52%) |
Check Demo of Text file parser |