| User: editor -- 2011-03-08 << 733 735 >> |
| Hits: 3829 |
| Type: Regular expression replace |
| Search all Regular expression replace examples |
| Description: |
| How to add a port 80 for all IP addresses in a text file? |
| Input Sample: |
| ......... 123.222.18.20 ..... 33.15.87.26 ....... 82.136.71.33 ....... ............... 25.126.55.50 ... |
| Output Sample: |
| ......... 123.222.18.20:80 ..... 33.15.87.26:80 ....... 82.136.71.33:80 ....... ............... 25.126.55.50:80 ... |
| Answer: |
| Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
| 1. ctrl-o open text file 2. ctrl-h open 'replace' window * set 'search for pattern' to: * set 'replace with pattern' to: 3. click 'replace', done. 4. ctrl-s save to disk. |
Screenshot 1: Replace_Window |
Similar Examples: |
| How to extract all IP address from a text file? (78%) How to sort all lines of ip addresses in a text file? (75%) How to extract all html address from a text file? (71%) How to extract all email addresses from many text files? (70%) How to extract/parse all http addresses from text/html file? (67%) How to reverse the order of all the lines in a text file? (65%) How to add h2 tag for all sub-title lines in text file? (64%) Can I translate all the IP address to country in a text file? (64%) |
Check Demo of Regular expression replace |
| Keywords: |
| ddd odd addresses ip address address addr port regular expression expression regular search expression add text add 1 all text replace all search pattern replace pattern in text file replace text pattern |