|User: editor -- 2011-06-27 << 807 809 >>|
|Type: Regular expression replace|
|Search all Regular expression replace examples|
|How to remove all path information for multiple http addresses in text file? Need to strip all path before "/" and keep the basename of all addresses.|
|Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.|
|1. ctrl-o open source text file |
2. ctrl-h open 'replace' dialogue
* set 'replace unit' to 'Chars', set 'replace scope' to 'Line'
* set 'Search for pattern' to:
3. click 'replace', done.
4. ctrl-s save to file.
Note: for multiple files, click 'batch replace' in step 3, and drag multiple files to 'Batch Runner' window, and click 'batch replace', done.
Screenshot 1: Replace_Window
|How to remove leading spaces and tabs in each line in multiple text files? (61%)|
How to sort all lines of ip addresses in a text file? (61%)
How to extract all email addresses from many text files? (60%)
How to extract/parse all http addresses from text/html file? (60%)
How to move the last line to the beginning for multiple text files? (58%)
How to remove all letters before "=" in each line of text file? (58%)
How to remove partially duplicated lines in a text file? (58%)
How to remove/delete all multi-byte characters in a text file? (58%)
Check Demo of Regular expression replace
|strip basename formation path addresses keep before bef befor address batch remove file path strip batch replace text basename batch strip batch strip text batch strip text file remove path remove all text before batch remove before|