File rename

A swapping-ground for Regular Expression syntax

File rename

Postby Mot » Wed Jul 19, 2017 12:08 pm

I want to move the end of a file to the beginning.

Example I want this file name

An Overview of DNS - CompTIA Network+ N10-006 - 1.3

to change to

1.3 - An Overview of DNS - CompTIA Network+ N10-006

I have not been able to figure it out yet.
Mot
 
Posts: 2
Joined: Wed Jul 19, 2017 12:05 pm

Re: File rename

Postby KenP » Wed Jul 19, 2017 12:25 pm

This will work with the example you've given.

RegEx (1)
Match: (.*) - (\d\.\d)$
Replace: \2 - \1
KenP
 
Posts: 199
Joined: Sat Jul 30, 2016 11:25 am

Re: File rename

Postby Mot » Thu Jul 20, 2017 4:58 am

Thank you very much!!
Mot
 
Posts: 2
Joined: Wed Jul 19, 2017 12:05 pm


Return to Regular Expressions