Move part of filename to front

A swapping-ground for Regular Expression syntax

Move part of filename to front

Postby evh5150ni » Tue Jun 18, 2019 11:22 am

This is a great forum - clearly really useful for lots of people!

I have lots of files named in this format: Metallica vs. Manchester Apollo 1988.10.08 or Metallica vs. New Orleans Louisiana Superdome 1992.08.29 or Metallica vs. East Rutherford New Jersey Continental Airlines Arena 1997.04.01

What I want to end up with is: 1988.10.08 - Metallica vs. Manchester Apollo or 1992.08.29 - Metallica vs. New Orleans Louisiana Superdome or 1997.04.01 - Metallica vs. East Rutherford New Jersey Continental Airlines Arena

Can anyone help me achieve this? Thank you!
evh5150ni
 
Posts: 5
Joined: Tue Jun 18, 2019 11:14 am

Re: Move part of filename to front

Postby therube » Tue Jun 18, 2019 4:08 pm

1:RegEx
Code: Select all
Match:  (.*) (\d\d\d\d\.\d\d\.\d\d)
Replace:  \2 - \1
therube
 
Posts: 1319
Joined: Mon Jan 18, 2016 6:23 pm

Re: Move part of filename to front

Postby evh5150ni » Tue Jun 18, 2019 5:17 pm

Thank you very much.
evh5150ni
 
Posts: 5
Joined: Tue Jun 18, 2019 11:14 am


Return to Regular Expressions