Plain File Mode (Name.10.01.05.Wedding.Day.Jackie.Loue.Movie.MKV-BLUTOPIA)

Support for Windows users
Post Reply
mouzzampk2014
Posts: 35
Joined: 07 Jan 2019, 00:49

Plain File Mode (Name.10.01.05.Wedding.Day.Jackie.Loue.Movie.MKV-BLUTOPIA)

Post by mouzzampk2014 »

Hi, I have files in this format

Code: Select all

Name.10.01.05.Wedding.Day.Jackie.Loue.Movie.MKV-BLUTOPIA

Is it possible to format these filenames like this

Code: Select all

Name - 10-01-05 - Wedding Day - Jackie Louie
This
Name.10.01.05.
and this part always same
.Movie.MKV-BLUTOPIA
Thanks
User avatar
rednoah
The Source
Posts: 23002
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Plain File Mode

Post by rednoah »

e.g.

Format: Select all

{
	def n = fn.before(/\d{2}\.\d{2}\.\d{2}/).space(' ')
	def t = fn.after(/\d{2}\.\d{2}\.\d{2}/).before(/\.Movie/).space(' ')
	def d = fn.match(/\d{2}\.\d{2}\.\d{2}/).space('-')
	"$n - $d - $t"
}

Code: Select all

Name - 10-01-05 - Wedding Day Jackie Loue
:arrow: Organize files based on information present in the file path
:idea: Please read the FAQ and How to Request Help.
mouzzampk2014
Posts: 35
Joined: 07 Jan 2019, 00:49

Re: Plain File Mode (Name.10.01.05.Wedding.Day.Jackie.Loue.Movie.MKV-BLUTOPIA)

Post by mouzzampk2014 »

Thank you and it worked brilliantly.
Post Reply