# Newbie question for Title extraction

**URL:** <https://community.mp3tag.de/t/newbie-question-for-title-extraction/50318>\
**Category:** Support\
**Created:** [September 28, 2020, 3:49pm UTC](https://community.mp3tag.de/t/newbie-question-for-title-extraction/50318 "2020-09-28T15:49:00Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![renu](https://community.mp3tag.de/user_avatar/community.mp3tag.de/renu/32/8124_2.png) [@renu](https://community.mp3tag.de/u/renu)\
**Post date:** [September 28, 2020, 3:49pm UTC](https://community.mp3tag.de/t/newbie-question-for-title-extraction/50318/1 "2020-09-28T15:49:00Z")

</div>

Hey Guys,

Thanks for the wonderful program.

I have a title that looks like : TrackName [1128-1137] (Album Name)

How can get the part of the title, and get the value [1128-1137] say another tag eg comment?  
PS: need a a bit of advice on the Regex  
Thanks in advance

---

<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:** [September 28, 2020, 3:52pm UTC](https://community.mp3tag.de/t/newbie-question-for-title-extraction/50318/2 "2020-09-28T15:52:10Z")

</div>

Try an action of the type "Guess value"  
Source: %title%  
Target pattern: %track% (%title%)

(I hope this is what you meant - you use such strange names for the fields).

---

<div class="post-metadata">

**Author:** ![renu](https://community.mp3tag.de/user_avatar/community.mp3tag.de/renu/32/8124_2.png) [@renu](https://community.mp3tag.de/u/renu)\
**Post date:** [September 28, 2020, 4:16pm UTC](https://community.mp3tag.de/t/newbie-question-for-title-extraction/50318/3 "2020-09-28T16:16:25Z")

</div>

Sorry for an ambiguous question, here it is better stated now... Please take an another look at the issue

---

<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:** [September 28, 2020, 4:30pm UTC](https://community.mp3tag.de/t/newbie-question-for-title-extraction/50318/4 "2020-09-28T16:30:30Z")

</div>

> [@renu](#):
>
> TrackName [1128-1137] (Album Name)

trackname = TITLE?  
[1128-1137] = a string with numbers  
(Album name) = ALBUM?

And you only want to move the string with numbers?  
So that you end up with  
TITLE = %title% (%album%)  
COMMENT = a string with numbers?

---

<div class="post-metadata">

**Author:** ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)\
**Post date:** [September 28, 2020, 4:37pm UTC](https://community.mp3tag.de/t/newbie-question-for-title-extraction/50318/5 "2020-09-28T16:37:43Z")

</div>

I'd like to chime in 🙂

@renu, if you really only want to move the range of numbers to another field, e.g., COMMENT and leave the TITLE field as it is, you can use an action "Guess value" with

Source: `%title%` and  
Target pattern: `%dummy% [%comment%] %dummy%`

If you want to go further and also move track name and album name to their corresponding fields, use

Source: `%title%` and  
Target pattern: `%title% [%comment%] (%album%)`

---

<div class="post-metadata">

**Author:** ![renu](https://community.mp3tag.de/user_avatar/community.mp3tag.de/renu/32/8124_2.png) [@renu](https://community.mp3tag.de/u/renu)\
**Post date:** [September 28, 2020, 5:20pm UTC](https://community.mp3tag.de/t/newbie-question-for-title-extraction/50318/6 "2020-09-28T17:20:13Z")

</div>

Thank you @Florian that makes good sense to go a step up .  
Also does the white space or blanks between the fields matter  
thank you for your help

---

<div class="post-metadata">

**Author:** ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)\
**Post date:** [September 28, 2020, 5:33pm UTC](https://community.mp3tag.de/t/newbie-question-for-title-extraction/50318/7 "2020-09-28T17:33:57Z")

</div>

> [@renu](#):
>
> Also does the white space or blanks between the fields matter

I'm imagining a trailing question mark on your sentence 😁 So yes, absolutely.

Essentially you're trying to match the structure of the original string with the target pattern. The blanks and parentheses are pointers for Mp3tag to denote the boundaries of the different parts of the text.

---

<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:** [October 28, 2020, 5:33pm UTC](https://community.mp3tag.de/t/newbie-question-for-title-extraction/50318/8 "2020-10-28T17:33:58Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
