Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1208.Advanced search and replace -- How to extract sentences that contain specified words from UTF8 file?

User: xiaoming -- 2014-06-19          << 1207  1209 >>
Hits: 2292
Type: Advanced search and replace   
Search all Advanced search and replace examples
How to extract all sentences that contain specified words from UTF8 file?
Input Sample:
dic file :  
artical file:(UTF8 encoded file) 
this  is 1st bbb  
this is zzz  
this  is aaa  
this is ccc  
this 2nd bbb  
Output Sample:
out put file :  
aaa=this  is aaa  
bbb=this  is 1st bbb  
bbb=this 2nd bbb  
bbb=this is ccc
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open file dictionary.txt 
2. ctrl-h open replace window 
* set 'replace unit' to 'Line' 
* set 'replace with pattern' to: 
* click "Advanced Page": 
set 'run following at the beginning of replace' to: 
(assume file sentence.txt is in d:\test\ folder) 
3. click 'replace', done! 
4. ctrl-s save to new file.

Screenshot 1:  Replace_Window

Screenshot 2:  Replace_Advanced_Window

Similar Examples:
How to extract all sentences that contain specified words? (87%)
How to extract all lines that contain specific words in a file? (83%)
How to extract lines containg specified words from many files? (80%)
How to extract all lines that contain specified words or phrases? (77%)
How to extract all sentences that contain special keyword from multiple articles? (74%)
How to extract random lines containing specified words? (71%)
How to extract all records that contains specified field values? (71%)
How to extract all lines that contain words in a list? (70%)

Check Demo of Advanced search and replace
extract sentence  sentences  utf8  grep  utf 8  utf  dictionary  diction  sentence  dic  replace words in a sentence  beginning sentence  encoding test  a join map match grep match a  words that replace join  replace sentences  replace a sentence in all 2  search and replace sentence