# Help Please

**URL:** <https://community.mp3tag.de/t/help-please/15136>\
**Category:** Support\
**Created:** [October 24, 2013, 5:35am UTC](https://community.mp3tag.de/t/help-please/15136 "2013-10-24T05:35:00Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![lee-morgan](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/9de053/32.png) [@lee-morgan](https://community.mp3tag.de/u/lee-morgan)\
**Post date:** [October 24, 2013, 5:35am UTC](https://community.mp3tag.de/t/help-please/15136/1 "2013-10-24T05:35:00Z")

</div>

Hi there,

I am new to all of this and i am trying to get my head round it.

I want to replace the filename Mr.and.Mrs.Smith.2005.BluRay.1080p.x264.YIFY.mp4 to Mr and Mrs Smith.mp4 and set the title as that.

Many thanks for any help 🙂

Lee

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [October 24, 2013, 8:06am UTC](https://community.mp3tag.de/t/help-please/15136/2 "2013-10-24T08:06:46Z")

</div>

I could think of a rather complicated construction for convert Filename-Filename.  
But if you only want to get the title and then rename the file, it is much easier, if you simply type in the title (in the tag panel and press Save or the files list column).  
Then use the function Convert\>Tag-Filename and enter as string:  
%title%

---

<div class="post-metadata">

**Author:** ![battway](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/ce7236/32.png) [@battway](https://community.mp3tag.de/u/battway)\
**Post date:** [October 24, 2013, 10:07am UTC](https://community.mp3tag.de/t/help-please/15136/3 "2013-10-24T10:07:20Z")

</div>

Make sure you select all the files you want to do this with. Either edit and select all or ctrl, left click and drag cursor across files. I like using the edit button myself but makes no never mind either way. ![:music:](https://community.mp3tag.de/uploads/default/original/1X/2ba05d1ade5eb0d15fc173be6f717dbe63890a70.gif ":music:")

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [October 24, 2013, 11:19am UTC](https://community.mp3tag.de/t/help-please/15136/4 "2013-10-24T11:19:49Z")

</div>

> [@battway](#):
>
> Make sure you select all the files you want to do this with. Either edit and select all or ctrl, left click and drag cursor across files. I like using the edit button myself but makes no never mind either way. ![:music:](https://community.mp3tag.de/uploads/default/original/1X/2ba05d1ade5eb0d15fc173be6f717dbe63890a70.gif ":music:")

Just a word of warning: my advice only works for the specified file as the OP did not supply a list of files to make out a certain pattern.  
So selecting more than just the file the OP mentioned would create a number of files with the same title and probably several errors during the attempt to rename them as filenames have to be unique.  
But perhaps the OP tells us if he wants to stay with this single file or has a whole list in mind.

---

<div class="post-metadata">

**Author:** ![lee-morgan](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/9de053/32.png) [@lee-morgan](https://community.mp3tag.de/u/lee-morgan)\
**Post date:** [October 24, 2013, 1:41pm UTC](https://community.mp3tag.de/t/help-please/15136/5 "2013-10-24T13:41:31Z")

</div>

> [@ohrenkino](#):
>
> Just a word of warning: my advice only works for the specified file as the OP did not supply a list of files to make out a certain pattern.  
> So selecting more than just the file the OP mentioned would create a number of files with the same title and probably several errors during the attempt to rename them as filenames have to be unique.  
> But perhaps the OP tells us if he wants to stay with this single file or has a whole list in mind.

I have a bunch of films (400odd) in the same name format, id rather not have to manually type it all in

---

<div class="post-metadata">

**Author:** ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)\
**Post date:** [October 24, 2013, 2:55pm UTC](https://community.mp3tag.de/t/help-please/15136/6 "2013-10-24T14:55:59Z")

</div>

> [@Lee Morgan](#):
>
> Hi there, I am new to all of this and i am trying to get my head round it.  
> I want to replace the filename Mr.and.Mrs.Smith.2005.BluRay.1080p.x264.YIFY.mp4 to Mr and Mrs Smith.mp4 and set the title as that. Many thanks for any help :)Lee

Assumingly you have not only this one file but many files to work with ...  
so please tell us how to divide the filename string into what logical parts (pattern).

Do you want only to set the filename?  
Do you want to create and fill tag fields by parts of the filename?

What meaning has what part?

Mr.and.Mrs.Smith|2005|BluRay|1080p|x264|YIFY|.mp4

Title|Year|???|???|???|???|FilenameExtension

And ... is this pattern valid for all files?

DD.20131024.1856.CEST

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [October 24, 2013, 3:02pm UTC](https://community.mp3tag.de/t/help-please/15136/7 "2013-10-24T15:02:44Z")

</div>

> [@Lee Morgan](#):
>
> I have a bunch of films (400odd) in the same name format, id rather not have to manually type it all in

OK.  
So  
Mr.and.Mrs.Smith.2005.BluRay.1080p.x264.YIFY.mp4  
Looks to me as though you have a part before the word Bluray and a part behind it.  
So, use the function Convert\> filename - tag and enter as source mask:  
%title%.%year%.BluRay.%dummy%  
The preview should show  
TITLE: Mr.and.Mrs.Smith  
YEAR: 2005  
This should fill the field TITLE with Mr.and.Mrs.Smith and the field YEAR with 2005.  
Now execute an Action (Quick) -\> see toolbar for that -\> of the type "Replace".  
Select TITLE as field.  
Enter as search string: .  
Enter as Replace string: " "  
(without the inverted commas, so just a blank).  
This should transform Mr.and.Mrs.Smith to " Mr and Mrs Smith".

Finally use the function Convert \> Tag-Filename and enter as mask:  
%title%

---

<div class="post-metadata">

**Author:** ![lee-morgan](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/9de053/32.png) [@lee-morgan](https://community.mp3tag.de/u/lee-morgan)\
**Post date:** [October 24, 2013, 4:19pm UTC](https://community.mp3tag.de/t/help-please/15136/8 "2013-10-24T16:19:03Z")

</div>

> [@ohrenkino](#):
>
> OK.  
> So  
> Mr.and.Mrs.Smith.2005.BluRay.1080p.x264.YIFY.mp4  
> Looks to me as though you have a part before the word Bluray and a part behind it.  
> So, use the function Convert\> filename - tag and enter as source mask:  
> %title%.%year%.BluRay.%dummy%  
> The preview should show  
> TITLE: Mr.and.Mrs.Smith  
> YEAR: 2005  
> This should fill the field TITLE with Mr.and.Mrs.Smith and the field YEAR with 2005.  
> Now execute an Action (Quick) -\> see toolbar for that -\> of the type "Replace".  
> Select TITLE as field.  
> Enter as search string: .  
> Enter as Replace string: " "  
> (without the inverted commas, so just a blank).  
> This should transform Mr.and.Mrs.Smith to " Mr and Mrs Smith".
> 
> Finally use the function Convert \> Tag-Filename and enter as mask:  
> %title%

Hi, many thanks for the help, i tried what you mentioned and this is the preview just using %title%.%year%.BluRay.%dummy%

"D:\Videos\Mr.and.Mrs.Smith.2005.BluRay.1080p.x264.YIFY.mp4" -\>  
title: Mr  
year: and.Mrs.Smith.2005

Any suggestions?

---

<div class="post-metadata">

**Author:** ![lee-morgan](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/9de053/32.png) [@lee-morgan](https://community.mp3tag.de/u/lee-morgan)\
**Post date:** [October 24, 2013, 4:27pm UTC](https://community.mp3tag.de/t/help-please/15136/9 "2013-10-24T16:27:13Z")

</div>

> [@DetlevD](#):
>
> Assumingly you have not only this one file but many files to work with ...  
> so please tell us how to divide the filename string into what logical parts (pattern).
> 
> Do you want only to set the filename?  
> Do you want to create and fill tag fields by parts of the filename?
> 
> What meaning has what part?
> 
> Mr.and.Mrs.Smith|2005|BluRay|1080p|x264|YIFY|.mp4
> 
> Title|Year|???|???|???|???|FilenameExtension
> 
> And ... is this pattern valid for all files?
> 
> DD.20131024.1856.CEST

Hi, every movie is in the same format:  
i'm not interested in any part after the year other than the .mp4

the basis of all this is i am writing an imdb lookup source from the filename or title, but i don't really want to type every title in to do the search.

Lee

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [October 24, 2013, 5:15pm UTC](https://community.mp3tag.de/t/help-please/15136/10 "2013-10-24T17:15:40Z")

</div>

> [@Lee Morgan](#):
>
> Hi, many thanks for the help, i tried what you mentioned and this is the preview just using %title%.%year%.BluRay.%dummy%
> 
> "D:\Videos\Mr.and.Mrs.Smith.2005.BluRay.1080p.x264.YIFY.mp4" -\>  
> title: Mr  
> year: and.Mrs.Smith.2005
> 
> Any suggestions?

Then use:  
%title%.2%year%.BluRay.%dummy%

cuts off a little from the year ... I am never quite sure where the "greadiness" of the expressions set in.

---

<div class="post-metadata">

**Author:** ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)\
**Post date:** [October 24, 2013, 5:16pm UTC](https://community.mp3tag.de/t/help-please/15136/11 "2013-10-24T17:16:36Z")

</div>

> [@Lee Morgan](#):
>
> Hi, every movie is in the same format:  
> i'm not interested in any part after the year other than the .mp4 ...

There are several ways to solve this task within Mp3tag.  
Here is one way which makes use of the converter "Tag - Tag" and some scripting functions.

**Filename:** Mr.and.Mrs.Smith.2005.BluRay.1080p.x264.YIFY.mp4

**1. Set tag field TITLE**

 

**Convert** | **Tag - Tag** | **ALT+5**  
Field:  
**TITLE**  
Format string:

 **$replace($reverse($regexp($reverse(%\_filename%),'^(.+?)\.(.+?)\.(.+?)\.(.+?)\.(.+?)\.(.+?)$','$6')),'.',' ')** 

Preview  
**Mr and Mrs Smith**

 

**2. Set tag field YEAR**

 

**Convert** | **Tag - Tag** | **ALT+5**  
Field:  
**YEAR**  
Format string:

 **$reverse($regexp($reverse(%\_filename%),'^(.+?)\.(.+?)\.(.+?)\.(.+?)\.(.+?)\.(.+?)$','$5'))** 

Preview  
**2005**

 

**3. Set filename from tag field TITLE**

 

**Convert** | **Tag - Tag** | **ALT+5**  
Field:  
**\_FILENAME**

 

Format string:  
**%TITLE%**

 

Preview  
**Mr and Mrs Smith**

 

DD.20131024.2130.CEST

---

<div class="post-metadata">

**Author:** ![lee-morgan](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/9de053/32.png) [@lee-morgan](https://community.mp3tag.de/u/lee-morgan)\
**Post date:** [October 25, 2013, 4:15am UTC](https://community.mp3tag.de/t/help-please/15136/12 "2013-10-25T04:15:22Z")

</div>

> [@DetlevD](#):
>
> There are several ways to solve this task within Mp3tag.  
> Here is one way which makes use of the converter "Tag - Tag" and some scripting functions.
> 
> **Filename:** Mr.and.Mrs.Smith.2005.BluRay.1080p.x264.YIFY.mp4
> 
> **1. Set tag field TITLE**
> 
>  
> 
> **Convert** | **Tag - Tag** | **ALT+5**  
> Field:  
> **TITLE**  
> Format string:
> 
> **$replace($reverse($regexp($reverse(%\_filename%),'^(.+?)\.(.+?)\.(.+?)\.(.+?)\.(.+?)\.(.+?)$','$6')),'.',' ')** 
> 
> Preview  
> **Mr and Mrs Smith**
> 
>  
> 
> **2. Set tag field YEAR**
> 
>  
> 
> **Convert** | **Tag - Tag** | **ALT+5**  
> Field:  
> **YEAR**  
> Format string:
> 
> **$reverse($regexp($reverse(%\_filename%),'^(.+?)\.(.+?)\.(.+?)\.(.+?)\.(.+?)\.(.+?)$','$5'))** 
> 
> Preview  
> **2005**
> 
>  
> 
> **3. Set filename from tag field TITLE**
> 
>  
> 
> **Convert** | **Tag - Tag** | **ALT+5**  
> Field:  
> **\_FILENAME**
> 
>  
> 
> Format string:  
> **%TITLE%**
> 
>  
> 
> Preview  
> **Mr and Mrs Smith**
> 
>  
> 
> DD.20131024.2130.CEST

Awesome, works perfect 🙂  
I dont mean to be cheeky, but, is there a way i can set that in an action?

I have looked around the site but can't find any real documentation on it?  
could you please explain this to me?

[#0] (i assume these are the order?)  
T=2 (not got a scooby about this)  
F=ARTIST (i assume this is the field/variable?)  
1=; (replace this)  
2=/ (with this?)  
3=0|0 (????)

then i assume [#1] would run?

@ohrenkino, thanks for your help too, i really appreciate any and all contribution 🙂

Many thanks, Lee.

---

<div class="post-metadata">

**Author:** ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)\
**Post date:** [October 25, 2013, 5:28am UTC](https://community.mp3tag.de/t/help-please/15136/13 "2013-10-25T05:28:22Z")

</div>

> [@Lee Morgan](#):
>
> Awesome, works perfect 🙂  
> I dont mean to be cheeky, but, is there a way i can set that in an action?

Yes you can.

Begin Action Group **Test\_2013#20131025.LeeMorgan** 

Action #1  
_Actiontype 5:_ **Format value**  
_Field \_\_\_\_\_\_:_ **TITLE**  
_Formatstring:_ **$replace($reverse($regexp($reverse(%\_filename%),'^(.+?).(.+?).(.+?).(.+?).(.+?).(.+?)$','$6')),'.',' ')**

 

Action #2  
_Actiontype 5:_ **Format value**  
_Field \_\_\_\_\_\_:_ **YEAR**  
_Formatstring:_ **$reverse($regexp($reverse(%\_filename%),'^(.+?).(.+?).(.+?).(.+?).(.+?).(.+?)$','$5'))**

 

Action #3  
_Actiontype 5:_ **Format value**  
_Field \_\_\_\_\_\_:_ **\_FILENAME**  
_Formatstring:_ **%TITLE%**

 

End Action Group **Test\_2013#20131025.LeeMorgan** (3 Actions)

 

There is no need to look into or manipulate a Mp3tag MTA file directly.

 

DD.20131025.0929.CEST

---

<div class="post-metadata">

**Author:** ![lee-morgan](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/9de053/32.png) [@lee-morgan](https://community.mp3tag.de/u/lee-morgan)\
**Post date:** [October 25, 2013, 11:05am UTC](https://community.mp3tag.de/t/help-please/15136/14 "2013-10-25T11:05:38Z")

</div>

Hi DetlevD,

You are a star!!! 😃

Created the action group, and i then read the mta directly, i understand it all now

Many Thanks  
Lee

---

<div class="post-metadata">

**Author:** ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)\
**Post date:** [February 9, 2026, 12:24pm UTC](https://community.mp3tag.de/t/help-please/15136/15 "2026-02-09T12:24:43Z")

</div>

Closed on February 9, 2026, 12:24pm UTC


