# Remove Track # fromTitle or Trim Space.

**URL:** https://community.mp3tag.de/t/remove-track-fromtitle-or-trim-space/18885
**Category:** Support
**Created:** [April 12, 2017, 5:26pm UTC](https://community.mp3tag.de/t/remove-track-fromtitle-or-trim-space/18885 "2017-04-12T17:26:35Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Beluna](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/ed655f/32.png) [@Beluna](https://community.mp3tag.de/u/Beluna)
#### Post date: [April 12, 2017, 5:26pm UTC](https://community.mp3tag.de/t/remove-track-fromtitle-or-trim-space/18885/1 "2017-04-12T17:26:35Z")

</div>

looked in FAQ. Seems simple, but can't replace tag info.

I'm trying to remove the track# from title or Trim space from Beginnig.

the action doesn't seem to work

replace  
Title  
^\d\*\s\*-_\s_

Example.

1. Take Five

change to:

Take Five

Or just trim Title by 5 spaces...

Thanks

---

<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: [April 13, 2017, 3:20am UTC](https://community.mp3tag.de/t/remove-track-fromtitle-or-trim-space/18885/2 "2017-04-13T03:20:33Z")

</div>

> [@Beluna](#):
>
> ...  
> replace  
> Title  
> ^\d\*\s\*-_\s_
> 
> Example.
> 
> 1. Take Five
> 
> change to:
> 
> Take Five
> 
> Or just trim Title by 5 spaces...
> 
> Thanks

No wonder as the pattern you find in the title is not matched by the expression.  
The expression expects a number and a space immediately behind it. You've got a dot there.  
^\d\*.\s\*-_\s_  
(and it is not "Replace" but "Replace with regular expression").

Did you have a look at the help for string functions?  
[https://docs.mp3tag.de/scripting/#string-functions](https://docs.mp3tag.de/scripting/#string-functions)  
e.g. $cutleft()

---

<div class="post-metadata">

### Author: ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)
#### Post date: [April 13, 2017, 5:35am UTC](https://community.mp3tag.de/t/remove-track-fromtitle-or-trim-space/18885/3 "2017-04-13T05:35:07Z")

</div>

> [@Beluna](#):
>
> Or just trim Title by 5 spaces...

Converter-Menu: Tag-Tag  
Field: TITLE  
Format String: $cutleft(%title%,5)

or an action:  
Type: Format Value  
Field: TITLE  
Format String: $cutleft(%title%,5)

---

<div class="post-metadata">

### Author: ![Beluna](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/ed655f/32.png) [@Beluna](https://community.mp3tag.de/u/Beluna)
#### Post date: [April 13, 2017, 11:48am UTC](https://community.mp3tag.de/t/remove-track-fromtitle-or-trim-space/18885/4 "2017-04-13T11:48:07Z")

</div>

> [@ohrenkino](#):
>
> No wonder as the pattern you find in the title is not matched by the expression.  
> The expression expects a number and a space immediately behind it. You've got a dot there.  
> ^\d\*.\s\*-_\s_  
> (and it is not "Replace" but "Replace with regular expression").
> 
> Did you have a look at the help for string functions?  
> [https://docs.mp3tag.de/scripting/#string-functions](https://docs.mp3tag.de/scripting/#string-functions)  
> e.g. $cutleft()

Thanks

Someone in the FAQ expalined why it wouldn't work... gave a soltion:

^\d{0,7}[- .\_]\*

Works for me.

---

<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: [April 14, 2017, 7:27am UTC](https://community.mp3tag.de/t/remove-track-fromtitle-or-trim-space/18885/5 "2017-04-14T07:27:17Z")

</div>

> [@Beluna](#):
>
> ... I'm trying to remove the track# from title or Trim space from Beginnig. ...

Remove leading numbers and other characters

**$regexp(%TITLE%,'^\d{0,3}[\s\.\_\-]?\s\*',)**

From:  
01-99 Luftballons  
123.8000 miles from home

To:  
99 Luftballons  
8000 miles from home

... based on ... aladoro ... Jul 5 2007, 08:12 ...  
[Remove 'track' number from title?](https://community.mp3tag.de/t/5102/7)

DD.20170414.1127.CEST

---

<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:26pm UTC](https://community.mp3tag.de/t/remove-track-fromtitle-or-trim-space/18885/6 "2026-02-09T12:26:46Z")

</div>


