User: Dilip -- 2015-03-04 << 1283 1285 >> |
Hits: 3378 |
Type: Regular expression replace |
Search all Regular expression replace examples |
Description: |
Advanced Dictionary replacement How to achieve the following Imported dictionary has tab separated values along with the replacement. Sometimes the regex value $1 or $2 or $3 is found in the replacement \b(mercedex|mercedez)( |\-)(\w{4}) Mercedes $3 so that mercedex Benz or mercedez Benz or mercedex-Benz or Mercedez-Benzoil is replaced by Mercedez Benz which is the desired output |
Input Sample: |
mercedex Benzin mercedez Benz mercedex-Benz Mercedez-Benzoil |
Output Sample: |
Mercedes Benz Mercedes Benz Mercedes Benz Mercedes Benz |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
The <tab> delimitered regular expression can be imported to replace pioneer directly. 1. open "Tools->Batch Runner" menu 2. drag multiple text file to Batch Runner window for replace 3. click "Fast Replace" button 4. click "import" button to import the <tab> delimitered file 5. click "start", done. the Regular expression you provided are basically correct, but need to change to: and you should check "ignore case" option after step 4 |
Similar Examples: |
How to import a list of urls to IE favorate automatically? (66%) How to add empty line at begin of multiple files? (65%) How to move the last line to the beginning for multiple text files? (64%) How to extract last 100 lines from multiple files? (62%) How to extract all lines with more than 30 characters from multiple files? (62%) How to find and replace multiple line text? (62%) How to extract first 55 characters form multiple .txt.files? (61%) How to put artist into ID3 tag in multiple mp3 files? (61%) |
Check Demo of Regular expression replace |
Keywords: |
regex asic replacement dictionary diction found dic times ignore case mer replace pioneer multiple replacement rules regex be replace pioneer dictionary regex replace replacement pioneer pioneer replacement regular expression multiple tab list regular pioneer |