Please take a minute to check our Frequently Asked Questions. Use Search to reveal possible related topics.
Also make sure you've read the Forum Guidelines before posting in this forum.
![]() ![]() |
Nov 13 2011, 06:58
Post
#1
|
|
|
Member Group: Members Posts: 4 Joined: 13-November 11 Member No.: 15567 Mp3tag Version: 2.49 |
Hi folks,
I want to remove the year from the "title" and copy it to the "year" field. How can I achieve this ? For e.g. Original Title: Nostalgia ft. Masta Ace (2007) New Title: Nostalgia ft. Masta Ace Year: 2007 Original Title: Check Yo Self (Remix) ft. Das Efx (2001) New Title: Check Yo Self (Remix) ft. Das Efx Year: 2001 Original Title: Give It 2 You (Remix) (1995) New Title: Give It 2 You (Remix) Year: 1995 Thanks in advance |
|
|
|
Nov 13 2011, 07:55
Post
#2
|
|
![]() Member Group: Full Members Posts: 4129 Joined: 26-May 06 From: Wuppertal, Germany, Planet Earth Member No.: 3194 Mp3tag Version: 2.54 |
... I want to remove the year from the "title" and copy it to the "year" field. How can I achieve this ? For e.g. Original Title: Nostalgia ft. Masta Ace (2007) New Title: Nostalgia ft. Masta Ace Year: 2007 ... Action: Guess values Source format: %TITLE% Guessing pattern: %TITLE% (%YEAR%) DD.20111113.0755 -------------------- * Beyond that, don't ask, when you don't know what to do with the answer. *
♥ home is where the heart is ♥ |
|
|
|
Nov 13 2011, 08:04
Post
#3
|
|
|
Member Group: Members Posts: 4 Joined: 13-November 11 Member No.: 15567 Mp3tag Version: 2.49 |
Thanks DetlevD
I tried to use Format value with, Field: %YEAR% Format String: $regexp(%TITLE%, '^(.+)\s\(([0-9]{4})\)$','$2') It didnt seem to work though. Any reason why it could be ? Atleast i know there is an alternative now Action: Guess values Source format: %TITLE% Guessing pattern: %TITLE% (%YEAR%) DD.20111113.0755 |
|
|
|
Nov 13 2011, 08:09
Post
#4
|
|
|
Member Group: Members Posts: 4 Joined: 13-November 11 Member No.: 15567 Mp3tag Version: 2.49 |
Also "Guess values" doesnt work when you have,
Test String (Remix) (1995) It splits this to, Title: Test String Year: Remix) (1995 |
|
|
|
Nov 13 2011, 09:39
Post
#5
|
|
![]() Member Group: Full Members Posts: 4129 Joined: 26-May 06 From: Wuppertal, Germany, Planet Earth Member No.: 3194 Mp3tag Version: 2.54 |
Also "Guess values" doesnt work when you have, Test String (Remix) (1995) It splits this to, Title: Test String Year: Remix) (1995 Yes, you are right. Try this ... Action: Guess values Source format: $regexp(%TITLE%,'^(.+)\s\((.+)\)$','$1===$2') Guessing pattern: %TITLE%===%YEAR% ... or try this excentric innovative action group ... Begin Action Group Test_2011#20111113.GuessValues Action #1 Actiontype 7: Import tag fields (guess values) Source format __: $reverse(%TITLE%) Guessing pattern: )%YEAR%( %TITLE% Action #2 Actiontype 5: Format value Field ______: YEAR Formatstring: $reverse(%YEAR%) Action #3 Actiontype 5: Format value Field ______: TITLE Formatstring: $reverse(%TITLE%) End Action Group Test_2011#20111113.GuessValues (3 Actions) DD.20111113.0950.CET This post has been edited by DetlevD: Nov 13 2011, 09:53 -------------------- * Beyond that, don't ask, when you don't know what to do with the answer. *
♥ home is where the heart is ♥ |
|
|
|
Nov 13 2011, 11:39
Post
#6
|
|
|
Member Group: Members Posts: 4 Joined: 13-November 11 Member No.: 15567 Mp3tag Version: 2.49 |
Wow
Its working like a charm A++++++++++ your answer Yes, you are right. Try this ... Action: Guess values Source format: $regexp(%TITLE%,'^(.+)\s\((.+)\)$','$1===$2') Guessing pattern: %TITLE%===%YEAR% ... or try this excentric innovative action group ... Begin Action Group Test_2011#20111113.GuessValues Action #1 Actiontype 7: Import tag fields (guess values) Source format __: $reverse(%TITLE%) Guessing pattern: )%YEAR%( %TITLE% Action #2 Actiontype 5: Format value Field ______: YEAR Formatstring: $reverse(%YEAR%) Action #3 Actiontype 5: Format value Field ______: TITLE Formatstring: $reverse(%TITLE%) End Action Group Test_2011#20111113.GuessValues (3 Actions) DD.20111113.0950.CET |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 19th May 2013 - 15:51 |