Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1252.Advanced search and replace -- How to use the dictionary to do multiple Regex search and replace?

User: Dilip -- 2014-09-21          << 1251  1253 >>
Hits: 2610
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to use Regex in the dictionary? 
In the dictionary, I want to specify 
b(u|o)ke=bike 
 
This is a simple typo of bike 
Input Sample:
buke 
boke
Output Sample:
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 'Word' 
* 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 english words regex search and replace? (83%)
How to split the dictionary file and use word as filename? (58%)
How to search replace multiple files with distinct search replace definition for each? (54%)
How to change the direction of all sentences in a text file? (52%)
How to replace file content in multiple files with corresponding filename? (52%)
How to replace strings in multiple files based on the search/replace mapping file? (52%)
How to remove the last 3 lines of multiple text files all at once? (52%)
How to download multiple webpages with part of url as filename? (51%)

Check Demo of Advanced search and replace
Keywords:
regex  keys  dictionary  diction  dic  key  pare  import  settings  setting  dictionary load  use key  replace with multiple data  replace multiple key  start of each line  format line  line format  multiple txt replace set