User: Aaron -- 2016-01-27 << 1337 1339 >> |
Hits: 2062 |
Type: Advanced search and replace |
Search all Advanced search and replace examples |
Description: |
I am requesting a script that is similar to #748 and #811. The script should remove sentence fragments from File A based on the list in File B. The list of fragments in File B are only part of a sentence and may contain standard punctuation. |
Input Sample: |
File A: It was a very old farmhouse, long unused. The wall of rough, white stone was decayed, and in places had crumbled away, and the roof of the wing, the blind wall of which looked toward the railway, had perished, and was patched here and there with tin. Through the gates there was a large yard, overgrown with tall grass, and beyond that, an old house with Venetian blinds in the windows. File B: List of sentence fragments - one per line old farmhouse, long rough, wh |
Output Sample: |
Output: File A: It was a very unused. The wall of stone was decayed, and in places had crumbled away, and the blind wall of which looked toward had perished, and was patched here and there the gates there was tall grass, and beyond that, an old house with Venetian windows. |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
Assume file B.txt is in d:\test\ 1. ctrl-o open file A 2. ctrl-h open 'replace' dialogue: * set 'replace with pattern' to: 3. click 'replace', done. Note: in File B.txt, some special letter such as '.' can match any character. |
Screenshot 1: Replace_Window |
Similar Examples: |
How to merge unique lines found in File A with the text of File B? (58%) How to merge every 3 lines from file A and every 1 line from file B? (55%) How to remove all the unavailable addresses from a list of web pages? (55%) How to remove the timestamps at the start of line in lrc files? (55%) How to randomly remove comma delimited sentence fragments? (52%) How to remove any comments that from hash mark "#" to line end? (52%) How to remove consecutive space and table keys at the end of each line? (52%) How to merge odd lines from file1 and even lines from file2? (51%) |
Check Demo of Advanced search and replace |
Keywords: |
punctuation unctuation similar based on special sentence script scrip scr letter remove special remove punctuation replace special character special character replace with special character remove letter search and replace sentence replace sentence |