# Removing dates from title with regexp

**URL:** <https://community.mp3tag.de/t/removing-dates-from-title-with-regexp/60043>\
**Category:** Support\
**Created:** [February 12, 2023, 4:57pm UTC](https://community.mp3tag.de/t/removing-dates-from-title-with-regexp/60043 "2023-02-12T16:57:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ian\_Werich](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/i/9de0a6/32.png) [@Ian\_Werich](https://community.mp3tag.de/u/Ian_Werich)\
**Post date:** [February 12, 2023, 4:57pm UTC](https://community.mp3tag.de/t/removing-dates-from-title-with-regexp/60043/1 "2023-02-12T16:57:43Z")

</div>

Hi everyone,

many titles I working with contain a date string as "**Domingo Santa Cruz - Unión cívica (21-02-1933)**"

I would like to remove the date with regexp so that the title should be " **Domingo Santa Cruz - Unión cívica**" but I can't guess the right string.

Does anyone know a way to solve my problem?

Thank you very much.

Ian

---

<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:** [February 12, 2023, 5:01pm UTC](https://community.mp3tag.de/t/removing-dates-from-title-with-regexp/60043/2 "2023-02-12T17:01:17Z")

</div>

You could try an action of the type "Guess value":  
Source: `%title%`  
Target string: `%title% (%dummy%)`

---

<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:** [February 12, 2023, 5:03pm UTC](https://community.mp3tag.de/t/removing-dates-from-title-with-regexp/60043/3 "2023-02-12T17:03:40Z")

</div>

Or you could try an action of the type "Replace with regular expression"  
Search pattern: `\s*\(\d+.*\)`  
Replace string:  
(leave empty)

---

<div class="post-metadata">

**Author:** ![Ian\_Werich](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/i/9de0a6/32.png) [@Ian\_Werich](https://community.mp3tag.de/u/Ian_Werich)\
**Post date:** [February 13, 2023, 10:38am UTC](https://community.mp3tag.de/t/removing-dates-from-title-with-regexp/60043/4 "2023-02-13T10:38:04Z")

</div>

> [@ohrenkino](#):
>
> `\s*\(\d+.*\)`

This solution works very fine!

Thank You  
Ian

---

<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:** [March 15, 2023, 10:38am UTC](https://community.mp3tag.de/t/removing-dates-from-title-with-regexp/60043/5 "2023-03-15T10:38:41Z")

</div>

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