# Deleting "some" text from a title

**URL:** https://community.mp3tag.de/t/deleting-some-text-from-a-title/65701
**Category:** Support
**Created:** [August 23, 2024, 2:07am UTC](https://community.mp3tag.de/t/deleting-some-text-from-a-title/65701 "2024-08-23T02:07:37Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Richard127](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/e19b73/32.png) [@Richard127](https://community.mp3tag.de/u/Richard127)
#### Post date: [August 23, 2024, 2:07am UTC](https://community.mp3tag.de/t/deleting-some-text-from-a-title/65701/1 "2024-08-23T02:07:37Z")

</div>

Hi there. I stupidly uninstalled MP3 tag to solve an issue but deleted all my settings as well. I had a way, using Actions, to delete a certain amount of text at the front of a title. Mostly used after converting Filename to Tag, where the resulting text would for example appear as (01 - Track Title) where I would want to delete the first five characters (including spaces) to show just: (Track Title). This can save lots of work editing every title in an album with many tracks. can anyone help with setting up the action to do this please?

---

<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: [August 23, 2024, 4:59am UTC](https://community.mp3tag.de/t/deleting-some-text-from-a-title/65701/2 "2024-08-23T04:59:33Z")

</div>

Here is an example action that removes leading track numbers (incl. spaces and the hyphen):

> [@Actions and batch-operations](https://community.mp3tag.de/t/actions-and-batch-operations/967/11):
>
> How to remove/trim leading track numbers? Action type: Replace with regular expressions Regular expression: ^\s\*\d+\s\*-\s\* Replace matches with: This regular expression removes the track number from 01 - Anything.. so that only Anything... remains. ^ matches the beginning of the string. Then any numbers of whitespaces \s\* followed by numbers from 0-9. The \s\*-\s\* part removes the hyphen and any whitespace characters around it.

---

<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: [August 23, 2024, 5:10am UTC](https://community.mp3tag.de/t/deleting-some-text-from-a-title/65701/3 "2024-08-23T05:10:03Z")

</div>

> [@Richard127](#):
>
> Mostly used after converting Filename to Tag

If you use the converter Filename-\>Tag you should avoid to write the track number to the title at all.  
I.e If your filename looks like this:  
`01 - Beatles - Help!.mp3`  
your format string should be  
`%track% - %artist% - %title%`  
or  
`%dummy% - %dummy% - %title%`  
if you only want to transfer the title.

Have a look at the help

> **[Import Tags from File and Folder Names – Mp3tag Documentation](https://docs.mp3tag.de/converters/import-tags-from-filenames/)**
>
> Documentation on Filename to Tag, a converter to import tags from file and folder names. Mp3tag is the universal Tag Editor.

---

<div class="post-metadata">

### Author: ![Richard127](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/e19b73/32.png) [@Richard127](https://community.mp3tag.de/u/Richard127)
#### Post date: [August 23, 2024, 3:37pm UTC](https://community.mp3tag.de/t/deleting-some-text-from-a-title/65701/4 "2024-08-23T15:37:50Z")

</div>

That's great. Thanks. I also found another way, so all's good. Thanks for your help.

---

<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: [August 23, 2024, 3:43pm UTC](https://community.mp3tag.de/t/deleting-some-text-from-a-title/65701/5 "2024-08-23T15:43:39Z")

</div>

> [@Richard127](#):
>
> I also found another way

Which was? It would be nice for others who read this thread to see your solution

---

<div class="post-metadata">

### Author: ![Richard127](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/e19b73/32.png) [@Richard127](https://community.mp3tag.de/u/Richard127)
#### Post date: [August 23, 2024, 4:15pm UTC](https://community.mp3tag.de/t/deleting-some-text-from-a-title/65701/6 "2024-08-23T16:15:58Z")

</div>

Using Tag \> Tag then Title Field, then $cutLeft(%Title%,5) in the format string field. With the last digit ("5" in this case) being the number of characters you want to delete from the beginning 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: [September 22, 2024, 4:16pm UTC](https://community.mp3tag.de/t/deleting-some-text-from-a-title/65701/7 "2024-09-22T16:16:33Z")

</div>

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