User: bruce lee -- 2011-09-06 << 849 851 >> |
Hits: 3324 |
Type: Text file parser |
Search all Text file parser examples |
Description: |
How to extract company name from many website?I find the company name usually end up with "co., ltd" and the first letter of every word is capital.For example,Hebei Shulin Chemicals CO.,Ltd. How to extract a group words with "co ltd" and the first letter of every word is capital? |
Input Sample: |
www.shlchem.com www.shlchem.com www.shlchem.com |
Output Sample: |
www.shlchem.com Hebei Shulin Chemicals CO.,Ltd www.shlchem.com Hebei Shulin Chemicals CO.,Ltd www.shlchem.com Hebei Shulin Chemicals CO.,Ltd |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
1. prepare a file links.txt that contains one link each line starting with "http" 2. open "Tools->Batch Runner" menu, click "import list" to import the links.txt 3. double click one line of address open "File Name Editor" window, change "Download As" to "text", and check "Apply to All", click "ok" 4. click "Fast Replace" to open "Fast Replace" window 5. click "Add" to add a rule * set "search" to the string you want to match, such as: * set "replace" to: click "ok" 6. make sure "ignore case", "reg exp" and "extract" option are checked. 7. click "Start", and select "output to single file" button, all text that matches specified pattern will be extracted to a single file. |
Screenshot 1: Fast_Replace_Window |