# Delete multiple numbers in title field

**URL:** <https://community.mp3tag.de/t/delete-multiple-numbers-in-title-field/59216>\
**Category:** Support\
**Created:** [November 28, 2022, 10:40am UTC](https://community.mp3tag.de/t/delete-multiple-numbers-in-title-field/59216 "2022-11-28T10:40:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alain](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/a183cd/32.png) [@Alain](https://community.mp3tag.de/u/Alain)\
**Post date:** [November 28, 2022, 10:40am UTC](https://community.mp3tag.de/t/delete-multiple-numbers-in-title-field/59216/1 "2022-11-28T10:40:53Z")

</div>

Hello,  
I would like to delete the expression CTXXX in the title field of files, XXX being a series of 3 digits specific to each file. For example CT121 for file n°1, CT132 for file n°2, etc.  
How can I do this ?  
Thanks in advance for your help,  
Alain

---

<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:** [November 28, 2022, 10:46am UTC](https://community.mp3tag.de/t/delete-multiple-numbers-in-title-field/59216/2 "2022-11-28T10:46:32Z")

</div>

Try an action of the type "Replace with regular expression" for TITLE  
Search string: `CT\d+`  
Replace with:  
(leave emtpy).

Or if you want to see it with a preveiw:  
Convert\>Tag-Tag for TITLE  
Format string: `$regexp(%title%,CT\d+,)`

---

<div class="post-metadata">

**Author:** ![Alain](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/a183cd/32.png) [@Alain](https://community.mp3tag.de/u/Alain)\
**Post date:** [November 28, 2022, 8:53pm UTC](https://community.mp3tag.de/t/delete-multiple-numbers-in-title-field/59216/3 "2022-11-28T20:53:16Z")

</div>

It works perfectly.  
Thank you very much.

There is also a series of expression displaying as : LL LLl/dd or LL LLl/d ("L" ou "l" stand for letter and "d" for digit) that I want to delete.  
For example : KK IVa/16 or KK IIb/4  
I tried to create an action based on the action above but I was unsucessful.  
Your help would be appreciated.

---

<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:** [November 28, 2022, 9:02pm UTC](https://community.mp3tag.de/t/delete-multiple-numbers-in-title-field/59216/4 "2022-11-28T21:02:22Z")

</div>

> [@Alain](#):
>
> For example : KK IVa/16 or KK IIb/4

I would be a little restrictive in the action of the type "Replace with regular expression" and use  
Search string: `.. ...\/\d+`  
Replace with:  
(leave empty)  
which is: each dot represents a single character, so the dots represent 2 characters and then 3 characters in front of the slash, followed by a number.

---

<div class="post-metadata">

**Author:** ![Alain](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/a183cd/32.png) [@Alain](https://community.mp3tag.de/u/Alain)\
**Post date:** [November 29, 2022, 7:14am UTC](https://community.mp3tag.de/t/delete-multiple-numbers-in-title-field/59216/5 "2022-11-29T07:14:09Z")

</div>

Thank you again for this tip that worked perfectly. These two examples will probably help me for other actions ot the same kind.

As a consequence of the deletions I remain with unwanted comas at the end of certain titles or with double space within certain titles ; exemples follow :

Mazurka in B flat major,  
Etudes (12), Op. 10, No. 1. Allegro en ut majeur (double space between Op. 10, and No1)

Thank you in advance 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:** [November 29, 2022, 7:51am UTC](https://community.mp3tag.de/t/delete-multiple-numbers-in-title-field/59216/6 "2022-11-29T07:51:37Z")

</div>

> [@Alain](#):
>
> unwanted comas at the end of certain titles or with double space

It all depends on the search pattern.  
If you include the umwanted bits, then they will be remove in one go.  
Now I would filter for files with a trailing comma with  
`%title% MATCHES ,\s*$`  
and for double-blanks in the title you could use:  
%title% HAS " "  
(with 2 space characters between the inverted commas).

To remove the spaces use an acton of the type "Replace" for TITLE with  
Search string: \_\_  
Repalce with: \_  
where the \_ represents a space character

To remove the trailing comma, use an action of the type "Replace with regular expression for TITLE  
Search pattern: `,\s*$`  
Replace with:  
(leave empty)

---

<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:** [December 29, 2022, 7:52am UTC](https://community.mp3tag.de/t/delete-multiple-numbers-in-title-field/59216/7 "2022-12-29T07:52:16Z")

</div>

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