# Title Edit by removing first few characters

**URL:** https://community.mp3tag.de/t/title-edit-by-removing-first-few-characters/45850
**Category:** Support
**Created:** [July 10, 2019, 10:01am UTC](https://community.mp3tag.de/t/title-edit-by-removing-first-few-characters/45850 "2019-07-10T10:01:52Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Carlos1228](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@Carlos1228](https://community.mp3tag.de/u/Carlos1228)
#### Post date: [July 10, 2019, 10:01am UTC](https://community.mp3tag.de/t/title-edit-by-removing-first-few-characters/45850/1 "2019-07-10T10:01:52Z")

</div>

I'm new to MP3tag, and would like to remove the first few characters of a batch of titles. I have come across some forum entries about using Replace with Regular Expression but have not been able to do what I need.

Sample Title: 1453 Here Comes The Sun  
Needed Title: Here Comes The Sun

or

Sample Title: 14-53 Here Comes The Sun  
Desired Title: Here Comes The Sun

Please also clarify how to do it with batches of files. Confirming that I want to edit Titles, not Filenames.

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: [July 10, 2019, 10:48am UTC](https://community.mp3tag.de/t/title-edit-by-removing-first-few-characters/45850/2 "2019-07-10T10:48:49Z")

</div>

Load the files.  
Select all the files that should be treated.  
Click in the toolbar on "Action (quick)"  
Select an action of the type "Replace with regular expression"  
Field: TITLE  
Search string: `.*\d+`  
Replace string:  
(leave empty)  
Click OK.  
The action will modify all files where there is a hit for the search pattern.

---

<div class="post-metadata">

### Author: ![Carlos1228](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@Carlos1228](https://community.mp3tag.de/u/Carlos1228)
#### Post date: [July 10, 2019, 2:24pm UTC](https://community.mp3tag.de/t/title-edit-by-removing-first-few-characters/45850/3 "2019-07-10T14:24:34Z")

</div>

Thanks but after putting in the search string, it just left the last character of the original title. Should i put in the number of characters i need to delete? which is 5 characters?

---

<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: [July 10, 2019, 2:31pm UTC](https://community.mp3tag.de/t/title-edit-by-removing-first-few-characters/45850/4 "2019-07-10T14:31:16Z")

</div>

> [@Carlos1228](#):
>
> which is 5 characters

> [@Carlos1228](#):
>
> Sample Title: 1453 Here Comes The Sun

is 5 characters

> [@Carlos1228](#):
>
> Sample Title: 14-53 Here Comes The Sun

is 6 characters ...  
You can test the expression yourself with the function Convert\>Tag-Tag  
Enter as  
Format String:`$regexp('14-53 Here Comes The Sun',.*\d+ ,)`  
This should give the result  
`Here Comes The Sun`  
An once that works, select TITLE as field and remove the '14-53 Here Comes The Sun' with %title%

---

<div class="post-metadata">

### Author: ![Carlos1228](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@Carlos1228](https://community.mp3tag.de/u/Carlos1228)
#### Post date: [July 11, 2019, 11:05am UTC](https://community.mp3tag.de/t/title-edit-by-removing-first-few-characters/45850/5 "2019-07-11T11:05:38Z")

</div>

As the titles vary, I could not use the instruction for batch files. I am looking at some 50 folders with varying number of files in each 50 to 100 on average.

I was searching for other editing strings and came across $cutleft which I think will work. However I couldnt get it to delete the first 5 or 6 or whatever text/space/number that I need to delete...  
.  
Action (Quick)\>Replace with Regular Expression\>Field to "TITLE"\>Regular Expression to "$cutLeft(TITLE,5)

---

<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: [July 11, 2019, 11:28am UTC](https://community.mp3tag.de/t/title-edit-by-removing-first-few-characters/45850/6 "2019-07-11T11:28:19Z")

</div>

Could you show me a string that does not work?

The action that you use for $cutleft() is not suitable for that function.  
You would have to use "Format value".  
The more appropriate function would be $left(%title%,5)

But cutting a certain amout of characters is rather unflexible.  
My original suggestion used a regular expression (which is a kind of pattern) that said: replace anything followed by a number plus a space character with nothing. The examples you gave showed exactly that kind of pattern. I do not understand why it does not work with at least the files you gave as an example.

Or you could use "Guess value" with  
Source pattern: %title%  
Guessing pattern: %dummy% %title%

---

<div class="post-metadata">

### Author: ![Carlos1228](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@Carlos1228](https://community.mp3tag.de/u/Carlos1228)
#### Post date: [July 11, 2019, 11:57am UTC](https://community.mp3tag.de/t/title-edit-by-removing-first-few-characters/45850/7 "2019-07-11T11:57:25Z")

</div>

![image](https://community.mp3tag.de/uploads/default/original/2X/4/4f9c444321c85eeb2a1bf87d892283097b0c779e.png)

this is a sample list of what i want to edit. how do i remove the Numbers so that only the Text would remain.

the format sometimes changes to XXXX to XX-XX or some other variation.

---

<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: [July 11, 2019, 12:03pm UTC](https://community.mp3tag.de/t/title-edit-by-removing-first-few-characters/45850/8 "2019-07-11T12:03:07Z")

</div>

As you do not only have the number in front but also some other numbers in the string, please modify the search string in the action of the type "Replace with regular expression" as follows:  
Search string: `^.*?\d`  
(there is a trailing blank behind the "d")  
Replace string:  
(leave empty)

2212 Christ and the Law, Part 3 (Matthew 5:19)  
becomes  
Christ and the Law, Part 3 (Matthew 5:19)  
This also works for  
22-12 Christ and the Law, Part 3 (Matthew 5:19)

---

<div class="post-metadata">

### Author: ![Carlos1228](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@Carlos1228](https://community.mp3tag.de/u/Carlos1228)
#### Post date: [July 11, 2019, 12:09pm UTC](https://community.mp3tag.de/t/title-edit-by-removing-first-few-characters/45850/9 "2019-07-11T12:09:53Z")

</div>

heres what im doing

1. select all
2. click action (quick)
3. select replace with regular expression - click ok
4. set FIELD to Title via drop down menu
5. set regular expression to "`^.*?\d`"
6. leave replace matches to blank
7. click ok

Result no changes in the Title... am i doing something wrong?  
thanks for the help! youve been very patient...

 ![image](https://community.mp3tag.de/uploads/default/original/2X/8/86ae488736d5dcfbcb9b6e93b6440d72f3314af8.png)

 ![image](https://community.mp3tag.de/uploads/default/original/2X/5/5a8a35bfb7047d1afc12d7dc0e61da9e2534d347.png)

---

<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: [July 11, 2019, 12:20pm UTC](https://community.mp3tag.de/t/title-edit-by-removing-first-few-characters/45850/10 "2019-07-11T12:20:24Z")

</div>

I just tested it on real file, so I know it should work.

So I assume that that what we see is not that what is treated by the action.  
Could you open the dialogue "Extended tags" and check the window title if it says "APE" somewhere and not just ID3V2.3 or ID3V1?  
If you find APE in the window title, then close this dialogue and check in  
File\>Options\>Tags\>Mpeg  
what kind of tag versions you read, write and delete.  
For APE only "delete" should be ticked, all other options should be off for APE.  
If you had to modify the settings, then return to the file list and press Ctrl-T and see if you now see the correct information.  
If that is so, then press F5 to refresh the whole list.

---

<div class="post-metadata">

### Author: ![Carlos1228](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@Carlos1228](https://community.mp3tag.de/u/Carlos1228)
#### Post date: [July 11, 2019, 12:23pm UTC](https://community.mp3tag.de/t/title-edit-by-removing-first-few-characters/45850/11 "2019-07-11T12:23:55Z")

</div>

![image](https://community.mp3tag.de/uploads/default/original/2X/f/f10a4772ac6f9d9fd4a36f2d8da67f8e3aeb1a1d.png)

this is what it shows...

---

<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: [July 11, 2019, 12:25pm UTC](https://community.mp3tag.de/t/title-edit-by-removing-first-few-characters/45850/12 "2019-07-11T12:25:55Z")

</div>

Please have a look at the extended tags dialogue with just 1 file selected.  
For multiple selected files the dialogue header does not show the tag versions.

---

<div class="post-metadata">

### Author: ![Carlos1228](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@Carlos1228](https://community.mp3tag.de/u/Carlos1228)
#### Post date: [July 11, 2019, 12:26pm UTC](https://community.mp3tag.de/t/title-edit-by-removing-first-few-characters/45850/13 "2019-07-11T12:26:37Z")

</div>

![image](https://community.mp3tag.de/uploads/default/original/2X/5/56248da4950bc82a96bb7452d5161c6dc5fc66a6.png)

---

<div class="post-metadata">

### Author: ![Carlos1228](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@Carlos1228](https://community.mp3tag.de/u/Carlos1228)
#### Post date: [July 11, 2019, 12:32pm UTC](https://community.mp3tag.de/t/title-edit-by-removing-first-few-characters/45850/14 "2019-07-11T12:32:05Z")

</div>

tried to use Bulk Rename utility but it doesnt edit the title, only the filename...

---

<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: [July 11, 2019, 12:36pm UTC](https://community.mp3tag.de/t/title-edit-by-removing-first-few-characters/45850/15 "2019-07-11T12:36:34Z")

</div>

It would have been so easy, if there had been APE tags ...

What happens if you use the function Convert\>Tag-Tag  
Format string: `$regexp(%title%,^.*?\d ,)`  
Does the preview show the correct result?

Have you tried the "Guess value" action?

---

<div class="post-metadata">

### Author: ![Carlos1228](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@Carlos1228](https://community.mp3tag.de/u/Carlos1228)
#### Post date: [July 11, 2019, 12:39pm UTC](https://community.mp3tag.de/t/title-edit-by-removing-first-few-characters/45850/16 "2019-07-11T12:39:30Z")

</div>

![image](https://community.mp3tag.de/uploads/default/original/2X/0/0ca1d1634fd6822ac412e2258d09a0ce922ac177.png)

I think we got it...

---

<div class="post-metadata">

### Author: ![Carlos1228](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@Carlos1228](https://community.mp3tag.de/u/Carlos1228)
#### Post date: [July 11, 2019, 12:40pm UTC](https://community.mp3tag.de/t/title-edit-by-removing-first-few-characters/45850/17 "2019-07-11T12:40:45Z")

</div>

![image](https://community.mp3tag.de/uploads/default/original/2X/0/08aa6b00498c98d0d053c1d2789e22d4241f03fc.png)

thanks so much!

---

<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: [July 11, 2019, 12:50pm UTC](https://community.mp3tag.de/t/title-edit-by-removing-first-few-characters/45850/18 "2019-07-11T12:50:24Z")

</div>

As $regexp() is the very same function as the action "Replace with regular expression" I still wonder why the whole thing did not work as action.

---

<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: [July 11, 2019, 12:54pm UTC](https://community.mp3tag.de/t/title-edit-by-removing-first-few-characters/45850/19 "2019-07-11T12:54:37Z")

</div>

> [@ohrenkino](#):
>
> I still wonder why the whole thing did not work as action.

> [@ohrenkino](#):
>
> Search string: `^.*?\d`  
> (there is a trailing blank behind the "d")

My guess is that the trailing blank was missing. You can use `\s` to make it explicit in case you run into this again, e.g., `^.*?\d\s`

---

<div class="post-metadata">

### Author: ![Carlos1228](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@Carlos1228](https://community.mp3tag.de/u/Carlos1228)
#### Post date: [July 11, 2019, 1:02pm UTC](https://community.mp3tag.de/t/title-edit-by-removing-first-few-characters/45850/20 "2019-07-11T13:02:11Z")

</div>

i did add the blank as requested in the string though.... thanks to you both as this seems a very common edit and im sure others would find it useful sometime

your help is very much appreciated ohrenkino and florian!

[Next page](https://community.mp3tag.de/t/title-edit-by-removing-first-few-characters/45850.md?page=2)
