#1 : 17/09-24 13:57 Sandy Webster
Posts: 2
|
Hi,
I want to copy part of a file name to another part. I can't see how to do this easily. Example 2020 04 01 - COVID 19 Daily Report for Apr 2020 Copy "01" and paste before Apr 2020 04 01 - COVID 19 Daily Report for 01 Apr 2020 |
#2 : 17/09-24 15:07 James E McBride
Posts: 17
|
Hello!
I am assuming that the filenames that you are using would match this mask: {Year} {Month} {Day} - COVID 19 Daily Report for {Month abbreviation} {Year} In that case, you would create the following REPLACE rule (using Regular Expressions) Text to be Replaced: (\d{4}) (\d{2}) (\d{2})( - Covid 19 Daily Report for) (.*) Replace With: \1 \2 \3 \4 \3 \5 \1 = Year \2 = Month \3 = Day \4 = the boilerplate part of the name '' - Covid 19 Daily Report for" \5 = the rest of the name |
#3 : 17/09-24 15:28 Miguel
Posts: 136
|
Reply to #1:
Hi. Try this. Replace: (\d{2}) - (\w.*) (\w*) Add space after the last ) Replace with: $1 - $2 $1 $3 Add space after $3 I hope that work Miguel EDIT: forgot to say. Check Regular expression |
#4 : 18/09-24 14:56 Sandy Webster
Posts: 2
|
Reply to #2:
Thanks this worked for me despite my lack of programming skill! |