# Remove all characters up to a specific character

**URL:** https://community.mp3tag.de/t/remove-all-characters-up-to-a-specific-character/68895
**Category:** Support
**Created:** [June 18, 2025, 1:38pm UTC](https://community.mp3tag.de/t/remove-all-characters-up-to-a-specific-character/68895 "2025-06-18T13:38:52Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![astrohip](https://community.mp3tag.de/user_avatar/community.mp3tag.de/astrohip/32/18205_2.png) [@astrohip](https://community.mp3tag.de/u/astrohip)
#### Post date: [June 18, 2025, 1:38pm UTC](https://community.mp3tag.de/t/remove-all-characters-up-to-a-specific-character/68895/1 "2025-06-18T13:38:52Z")

</div>

Searched to no avail... I want to remove all characters in TITLE up to a specific character, leaving everything after it.

For example: "blah blah x This is the good part"

I want to remove everything up to "x". Bonus if it can also remove the space after it. Conditions: It will be the first instance of that character. But not the first space.

---

<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: [June 18, 2025, 1:48pm UTC](https://community.mp3tag.de/t/remove-all-characters-up-to-a-specific-character/68895/2 "2025-06-18T13:48:44Z")

</div>

Could you give a real example?  
For the dummy text I suggest:  
`$regexp('blah blah x This is the good part',.*\s.\s(\u.*),$1)`

---

<div class="post-metadata">

### Author: ![astrohip](https://community.mp3tag.de/user_avatar/community.mp3tag.de/astrohip/32/18205_2.png) [@astrohip](https://community.mp3tag.de/u/astrohip)
#### Post date: [June 18, 2025, 2:19pm UTC](https://community.mp3tag.de/t/remove-all-characters-up-to-a-specific-character/68895/3 "2025-06-18T14:19:02Z")

</div>

I'll have to see if I can remember it. I fixed them all manually, and of course can't even remember what album it was now. And seeing another similar post this morning reminded me to ask.

What in that REGEXP tells it to cut up to "x"?

---

<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: [June 18, 2025, 2:22pm UTC](https://community.mp3tag.de/t/remove-all-characters-up-to-a-specific-character/68895/4 "2025-06-18T14:22:01Z")

</div>

For me the example was so unspecific that I took the "x" as a placeholder for any single character enclosed by spaces followed by an uppercase character.  
So it is `\s.\s\u`

So this was only a test for me and there was no real use case behind it?

---

<div class="post-metadata">

### Author: ![astrohip](https://community.mp3tag.de/user_avatar/community.mp3tag.de/astrohip/32/18205_2.png) [@astrohip](https://community.mp3tag.de/u/astrohip)
#### Post date: [June 18, 2025, 9:07pm UTC](https://community.mp3tag.de/t/remove-all-characters-up-to-a-specific-character/68895/5 "2025-06-18T21:07:16Z")

</div>

Okaaayyyy.... I went back and dug thru the Recycle Bin, and found them. This is what the TITLES looked like:

03 - Symphonie Nr. 1 - III. Menuetto. Allegro molto e vivace  
04 - Symphonie Nr. 1 - IV. Adagio. - Allegro molto e vivace  
04 - Symphonie Nr. 5 - IV. Allegro. - Presto  
03 - Symphonie Nr. 6 - III. Lustiges Zusammensein der Landleute  
02 - Symphonie Nr. 8 - II. Allegretto scherzando  
etc etc yada yada (there were about 40 total)

All I wanted was the part from the first Capital "I" on. So for example, the first one:  
03 - Symphonie Nr. 1 - III. Menuetto. Allegro molto e vivace  
would become  
III. Menuetto. Allegro molto e vivace

I have done something similar before when the part I wanted to remove was the same in every TITLE. That was easy, and obviously, this was not that. I figured it would be a Regexp, but 10-15 minutes of playing around never worked. I did it by hand, and moved on.

But I love to learn new stuff, so I figured I would ask for the next time.

Thanks @ohrenkino for taking the time to work with me on this.

---

<div class="post-metadata">

### Author: ![MotleyG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/motleyg/32/440_2.png) [@MotleyG](https://community.mp3tag.de/u/MotleyG)
#### Post date: [June 18, 2025, 9:56pm UTC](https://community.mp3tag.de/t/remove-all-characters-up-to-a-specific-character/68895/6 "2025-06-18T21:56:44Z")

</div>

> [@astrohip](#):
>
> All I wanted was the part from the first Capital "I" on. So for example, the first one:  
> 03 - Symphonie Nr. 1 - III. Menuetto. Allegro molto e vivace  
> would become  
> III. Menuetto. Allegro molto e vivace

I would use the Action of `Guess Values` with the %title% field as the source and target `%dummy% - %dummy% - %title%` for these examples. No Regex required in this case.

---

<div class="post-metadata">

### Author: ![astrohip](https://community.mp3tag.de/user_avatar/community.mp3tag.de/astrohip/32/18205_2.png) [@astrohip](https://community.mp3tag.de/u/astrohip)
#### Post date: [June 18, 2025, 10:15pm UTC](https://community.mp3tag.de/t/remove-all-characters-up-to-a-specific-character/68895/7 "2025-06-18T22:15:29Z")

</div>

Too easy. Thank you!

---

<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: [June 19, 2025, 6:06am UTC](https://community.mp3tag.de/t/remove-all-characters-up-to-a-specific-character/68895/8 "2025-06-19T06:06:55Z")

</div>

Have you tried my suggestion on the examples?  
`$regexp('03 - Symphonie Nr. 1 - III. Menuetto. Allegro molto e vivace',.*\s.\s(\u.*),$1)`  
leads to "III. Menuetto. Allegro molto e vivace"

`02 - Symphonie Nr. 8 - II. Allegretto scherzando`  
becomes  
`II. Allegretto scherzando`  
so I would say it works.

---

<div class="post-metadata">

### Author: ![MotleyG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/motleyg/32/440_2.png) [@MotleyG](https://community.mp3tag.de/u/MotleyG)
#### Post date: [June 19, 2025, 10:48am UTC](https://community.mp3tag.de/t/remove-all-characters-up-to-a-specific-character/68895/9 "2025-06-19T10:48:14Z")

</div>

After checking further, I amended my original suggestion to use the Action Guess Values instead of the converter. The %dummy% placeholder doesn't work in the converter.

---

<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: [June 20, 2025, 4:32am UTC](https://community.mp3tag.de/t/remove-all-characters-up-to-a-specific-character/68895/10 "2025-06-20T04:32:56Z")

</div>

> [@MotleyG](#):
>
> The %dummy% placeholder doesn't work in the converter.

It works here without any problems.

Edit:  
Sorry. I was talking about the converter "Filename-Tag", not the converter "Tag-Tag".

---

<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: [July 20, 2025, 4:33am UTC](https://community.mp3tag.de/t/remove-all-characters-up-to-a-specific-character/68895/11 "2025-07-20T04:33:12Z")

</div>

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