# Trimming from specified characters

**URL:** <https://community.mp3tag.de/t/trimming-from-specified-characters/16268>\
**Category:** Support\
**Created:** [October 27, 2014, 3:00pm UTC](https://community.mp3tag.de/t/trimming-from-specified-characters/16268 "2014-10-27T15:00:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![djepeto](https://community.mp3tag.de/user_avatar/community.mp3tag.de/djepeto/32/23132_2.png) [@djepeto](https://community.mp3tag.de/u/djepeto)\
**Post date:** [October 27, 2014, 3:00pm UTC](https://community.mp3tag.de/t/trimming-from-specified-characters/16268/1 "2014-10-27T15:00:15Z")

</div>

Hi everybody! I need some help for formatting tags.  
My album tags are in form:  
album [catalog#]

I want to make new tag named "album only" and trim catalog# and empty char. space before.

---

<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 27, 2014, 3:12pm UTC](https://community.mp3tag.de/t/trimming-from-specified-characters/16268/2 "2014-10-27T15:12:44Z")

</div>

You can try an action of the type "Import tag field" (Guess value" for %ALBUM%.  
Enter as guessing pattern: %album% [%catalog%]

(There is no standard field for catalog number).  
I am not sure if you really want to have a field %album only% and do not really understand what you mean by "and empty char. space before"

So try the action on a test file and tell me where it needs refinement.

---

<div class="post-metadata">

**Author:** ![djepeto](https://community.mp3tag.de/user_avatar/community.mp3tag.de/djepeto/32/23132_2.png) [@djepeto](https://community.mp3tag.de/u/djepeto)\
**Post date:** [October 27, 2014, 5:28pm UTC](https://community.mp3tag.de/t/trimming-from-specified-characters/16268/3 "2014-10-27T17:28:30Z")

</div>

Hi, tnx for reply! 😃  
I already made field %catalog#%, so evetything is ok here. My files are already tagged.

Yes, I want to have a field %album only% (only for album name) and i want to make it from my album tag with maby trimming function from right...  
I know how to change my script, but I need some mechanism for already tagged files.

for example:

%album% The Return Of Wolfy [TOOL29201Z]  
%album only% The Return Of Wolfy

%album% Bullets Vol 3 [TOOL30001Z]  
%album only% Bullets Vol 3

---

<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 27, 2014, 5:49pm UTC](https://community.mp3tag.de/t/trimming-from-specified-characters/16268/4 "2014-10-27T17:49:11Z")

</div>

If you want to keep the original information of ALBUM but see a stripped version in ALBUM ONLY then I would suggest the following:

Copy the data from ALBUM to ALBUM ONLY with an action of the type "Format tag field" for ALBUM ONLY.  
Enter as format string: %album%

This fills ALBUM ONLY with more than you want, so you have to strip it.  
Try the action of the type "Import tag field" (guess values) for ALBUM ONLY.  
Enter as guessing pattern: %album only% [%dummy%

This should strip the number from the album name in ALBUM ONLY

---

<div class="post-metadata">

**Author:** ![djepeto](https://community.mp3tag.de/user_avatar/community.mp3tag.de/djepeto/32/23132_2.png) [@djepeto](https://community.mp3tag.de/u/djepeto)\
**Post date:** [October 27, 2014, 6:55pm UTC](https://community.mp3tag.de/t/trimming-from-specified-characters/16268/5 "2014-10-27T18:55:20Z")

</div>

Yes, this is correct way I tried, but I still have cat. numbers in %album only% field. Maybe I make mistake somewhere.

If we take a look on a form "%album% [%catalog#%]", I think the two important and repeated characters are " [".  
I tried to trim right side including these two characters but...I don't know how to make pattern correctly.

Too bad, I could have made extra field %album only% in the past. Now, my head against the wall! 😆

---

<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 27, 2014, 7:01pm UTC](https://community.mp3tag.de/t/trimming-from-specified-characters/16268/6 "2014-10-27T19:01:40Z")

</div>

I just tried the action and it works just as intended:

Import tag-field (Guess values) for %album only%  
Import string: %album only% [%dummy%  
This leaves the album name in ALBUM ONLY, the catalog# isn't there anymore  
So what do you do?

---

<div class="post-metadata">

**Author:** ![djepeto](https://community.mp3tag.de/user_avatar/community.mp3tag.de/djepeto/32/23132_2.png) [@djepeto](https://community.mp3tag.de/u/djepeto)\
**Post date:** [October 28, 2014, 10:41am UTC](https://community.mp3tag.de/t/trimming-from-specified-characters/16268/7 "2014-10-28T10:41:19Z")

</div>

I tried again, and it works! ![:w00t:](https://community.mp3tag.de/uploads/default/original/1X/cb01eca72fe9339ff6f3ec9f1e3c5fe002be0f0a.gif ":w00t:")  
It will help me a lot!  
Thank U very very much!!!

---

<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:25pm UTC](https://community.mp3tag.de/t/trimming-from-specified-characters/16268/8 "2026-02-09T12:25:20Z")

</div>

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


