Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1257.Advanced search and replace -- How to use the dictionary to do english words regex search and replace?

User: Dilip -- 2014-10-01          << 1256  1258 >>
Hits: 2796
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
This is the same request as the one found at http://www.mind- 
pioneer.com/services/1252_Advanced_search_and_replace.html 
 
This dictionary regex has special character like # in front of the word or after  
the word b(u|o)ke=bike 
Input Sample:
,buke 
buke# 
boke! 
boke? 
boke 
buke
Output Sample:
,bike 
bike# 
bike! 
bike? 
bike 
bike
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. First of all, prepare a dictionary file "dictionary.txt" with following format in ech line:  
b(u|o)ke=bike  
...  
2. select "settings->dictionary->dictionay import" menu, set load data from file dictionary.txt, and set format to "key=value", and click "start" to import dictionary  
 
3. ctrl-o open the file you want to replace  
4. ctrl-h open 'replace' dialogue  
* set 'replace unit' to 'Chars'  
* set 'search for pattern' to:  
* set 'replace witn pattern' to:  
  
* click 'advanced' tab, set 'run following for each matched unit' to:  
  
5. click 'replace', done.  
6. ctrl-s save to file.

Screenshot 1:  Replace_Window


Screenshot 2:  Replace_Advanced_Window


Similar Examples:
How to use the dictionary to do multiple Regex search and replace? (81%)
How to split the dictionary file and use word as filename? (57%)
How to extract all english words that preceded by multi-byte characters? (52%)
How to replace a word with a list of words repeatly in a text file? (50%)
How to split a text file according to first word in each line? (49%)
Is there any way to count how many pure English word in a text file? (49%)
How to count how many english words has less than 5 letters in a text file? (48%)
How to change the direction of all sentences in a text file? (48%)

Check Demo of Advanced search and replace
Keywords:
regex  special character  keys  english word  english  special  dictionary  diction  found  dic  pioneer txt keys  replace pioneer dictionary  regex replace  match regex  use word dictionary file  tab character  replace pioneer key  dictionary load