| User: editor -- 2008-07-06 << 213 215 >> |
| Hits: 3093 |
| Type: Advanced search and replace |
| Search all Advanced search and replace examples |
| Description: |
| How to add 15 days on all date(YYYY-MM-DD) in a text file? |
| Input Sample: |
| Date1: 2008-02-22 Date2: 2008-03-11 Date3: 2008-04-04 ... |
| Output Sample: |
| Date1: 2008-03-08 Date2: 2008-03-26 Date3: 2008-04-19 ... |
| Answer: |
| 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' dialog * set 'Search for pattern' to: * set 'Replace with pattern' to: 3. click 'Replace', done! Notes: 1. \d\d\d\d-\d\d-\d\d matches date like 2008-02-02, formattime($match,"%Y-%m-%d",15*24*60*60) convert it to the format of YYYY-mm-dd and add 15*24*60*60 seconds(15 days) 2. There are many other output format you can select, please search 'formattime' at online help documentation or page http://www.mind-pioneer.com/replace/help/Functions.html |
| Download Script: scripts/214.rst.zip |
Screenshot 1: Replace_Window |
Similar Examples: |
| How to add a port 80 for all IP addresses in a text file? (60%) How to add spaces to align text to the center in a text file? (60%) How to change the direction of all sentences in a text file? (57%) How to extract all IP address from a text file? (54%) How to shuffle all the lines in a text file? (54%) How to reverse all cases of letters in a text file? (54%) How to add a blank line after every 8 lines in text file? (54%) How to extract all html address from a text file? (53%) |
Check Demo of Advanced search and replace |
| Keywords: |
| ddd 606 odd seconds online matches yyyy functions document formattime select all replace text online replace text online search and replace text online text file replace online file replace online convert date text convert date to search replace convert date |