# Shorten Words

**URL:** <https://community.mp3tag.de/t/shorten-words/16313>\
**Category:** Support\
**Created:** [November 9, 2014, 11:50pm UTC](https://community.mp3tag.de/t/shorten-words/16313 "2014-11-09T23:50:09Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![CarlosEnrique](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/ac91a4/32.png) [@CarlosEnrique](https://community.mp3tag.de/u/CarlosEnrique)\
**Post date:** [November 9, 2014, 11:50pm UTC](https://community.mp3tag.de/t/shorten-words/16313/1 "2014-11-09T23:50:09Z")

</div>

Hello. Please excuse my english. Is not that good.  
I am a new user of mp3tag and is really awesome. Thank you very much for this useful and great work.

Unfortunately i am just learning about regular expressions, so this is my issue:  
I want to shorten the Artist Name and Title name this way;

1. Artist Name.  
a. I want to preserve only the first letter for all words with maximum 3 letters  
b. Then for the rest of the words i want to preserve the first 3 letters:

2. Title Name. I want to preserve only the first Letter of every word except for the last word. Last word would not be shortened. Titles with just one word would remain unchanged.

Well, i hope you could help me.

Thank you very much pals.

Carlos Enrique.

---

<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 10, 2014, 6:24am UTC](https://community.mp3tag.de/t/shorten-words/16313/2 "2014-11-10T06:24:44Z")

</div>

Before anybody starts wrinkling his brain:

What about  
initials, (e.g. Andrea T. Mendoza)  
single name names (e.g. ABBA)  
non-letters (numbers, ampersand e.g. Booker T. & MGs, 50 Cent)  
names with 3 or less letters (e.g. Al Jarreau)  
name extensions (e.g. Sammy Davis jr., Booker Newberry III)  
names that are already short (e.g. DJ FK)

Do you really want to get rid of perfectly sound data and replace it with an arbitrary heap of letters?

---

<div class="post-metadata">

**Author:** ![vkostas](https://community.mp3tag.de/user_avatar/community.mp3tag.de/vkostas/32/227_2.png) [@vkostas](https://community.mp3tag.de/u/vkostas)\
**Post date:** [November 10, 2014, 11:47am UTC](https://community.mp3tag.de/t/shorten-words/16313/3 "2014-11-10T11:47:33Z")

</div>

> [@CarlosEnrique](#):
>
> Hello. Please excuse my english. Is not that good.  
> I am a new user of mp3tag and is really awesome. Thank you very much for this useful and great work.
> 
> Unfortunately i am just learning about regular expressions, so this is my issue:  
> I want to shorten the Artist Name and Title name this way;
> 
> 1. Artist Name.  
> a. I want to preserve only the first letter for all words with maximum 3 letters  
> b. Then for the rest of the words i want to preserve the first 3 letters:
> 
> 2. Title Name. I want to preserve only the first Letter of every word except for the last word. Last word would not be shortened. Titles with just one word would remain unchanged.
> 
> Well, i hope you could help me.
> 
> Thank you very much pals.
> 
> Carlos Enrique.

Everything is possible as soon as you define clear and strict rules. We are "intelligent" and deviate many times from the main rule. Program is no intelligent but strictly follows our orders.  
Do you want always to follow those rule?  
Please specify if you foresee any exceptions.  
Thank you.

---

<div class="post-metadata">

**Author:** ![vkostas](https://community.mp3tag.de/user_avatar/community.mp3tag.de/vkostas/32/227_2.png) [@vkostas](https://community.mp3tag.de/u/vkostas)\
**Post date:** [November 10, 2014, 12:03pm UTC](https://community.mp3tag.de/t/shorten-words/16313/4 "2014-11-10T12:03:48Z")

</div>

> [@Victor Kostas](#):
>
> Everything is possible as soon as you define clear and strict rules. We are "intelligent" and deviate many times from the main rule. Program is no intelligent but strictly follows our orders.  
> Do you want always to follow those rule?  
> Please specify if you foresee any exceptions.  
> Thank you.

Here you go.

1. Artist Action: Replace with regular expression Regexp

```
\W|^\W*(\b\w+\b)\W*$|\b(\w{3})\w+\b|\b(\w{1})\w*?\b

```

replace with: $1$2$3  
or replace with: $caps($1)$caps($2)$caps($3) if you want to fix the first letter case.

2. Title  
Action: Replace with regular expression

```
\W|\b(\w)\w*\b(?=.*?\b\w+\b)

```

replace with: $1  
or replace with: $caps($1) if you want to fix the first letter case.

  
Good luck with your quest.

---

<div class="post-metadata">

**Author:** ![CarlosEnrique](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/ac91a4/32.png) [@CarlosEnrique](https://community.mp3tag.de/u/CarlosEnrique)\
**Post date:** [November 10, 2014, 7:50pm UTC](https://community.mp3tag.de/t/shorten-words/16313/5 "2014-11-10T19:50:54Z")

</div>

> [@ohrenkino](#):
>
> Before anybody starts wrinkling his brain:
> 
> What about  
> initials, (e.g. Andrea T. Mendoza)  
> single name names (e.g. ABBA)  
> non-letters (numbers, ampersand e.g. Booker T. & MGs, 50 Cent)  
> names with 3 or less letters (e.g. Al Jarreau)  
> name extensions (e.g. Sammy Davis jr., Booker Newberry III)  
> names that are already short (e.g. DJ FK)
> 
> Do you really want to get rid of perfectly sound data and replace it with an arbitrary heap of letters?

Thank you very much for your concern.  
I will apply the rules to "selected" songs in selected folders.  
These will be "showing" their abbreviated data in a limited car-radio screen.  
I will maintain the original source with the standard data.  
Thank you again.

---

<div class="post-metadata">

**Author:** ![CarlosEnrique](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/ac91a4/32.png) [@CarlosEnrique](https://community.mp3tag.de/u/CarlosEnrique)\
**Post date:** [November 10, 2014, 7:52pm UTC](https://community.mp3tag.de/t/shorten-words/16313/6 "2014-11-10T19:52:19Z")

</div>

> [@Victor Kostas](#):
>
> Here you go.
> 
> 1. Artist Action: Replace with regular expression Regexp
> 
> ```
> \W|^\W*(\b\w+\b)\W*$|\b(\w{3}\w+)\b|\b(\w{1})\w*?\b
> 
> ```
> 
> replace with: $1$2$3  
> or replace with: $caps($1)$caps($2)$caps($3) if you want to fix the first letter case.
> 
> 2. Title  
> Action: Replace with regular expression
> 
> ```
> \W|\b(\w)\w*\b(?=.*?\b\w+\b)
> 
> ```
> 
> replace with: $1  
> or replace with: $caps($1) if you want to fix the first letter case.
> 
>   
> Good luck with your quest.

---

<div class="post-metadata">

**Author:** ![CarlosEnrique](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/ac91a4/32.png) [@CarlosEnrique](https://community.mp3tag.de/u/CarlosEnrique)\
**Post date:** [November 10, 2014, 7:56pm UTC](https://community.mp3tag.de/t/shorten-words/16313/7 "2014-11-10T19:56:10Z")

</div>

> [@Victor Kostas](#):
>
> Here you go.
> 
> 1. Artist Action: Replace with regular expression Regexp
> 
> ```
> \W|^\W*(\b\w+\b)\W*$|\b(\w{3}\w+)\b|\b(\w{1})\w*?\b
> 
> ```
> 
> replace with: $1$2$3  
> or replace with: $caps($1)$caps($2)$caps($3) if you want to fix the first letter case.
> 
> 2. Title  
> Action: Replace with regular expression
> 
> ```
> \W|\b(\w)\w*\b(?=.*?\b\w+\b)
> 
> ```
> 
> replace with: $1  
> or replace with: $caps($1) if you want to fix the first letter case.
> 
>   
> Good luck with your quest.

Victor, thank you very much for taking the time to help.  
I will try this later and i will be careful.  
I´ll give you feedback tomorrow.  
Best regards.

---

<div class="post-metadata">

**Author:** ![vkostas](https://community.mp3tag.de/user_avatar/community.mp3tag.de/vkostas/32/227_2.png) [@vkostas](https://community.mp3tag.de/u/vkostas)\
**Post date:** [November 10, 2014, 8:33pm UTC](https://community.mp3tag.de/t/shorten-words/16313/8 "2014-11-10T20:33:28Z")

</div>

> [@CarlosEnrique](#):
>
> Victor, thank you very much for taking the time to help.  
> I will try this later and i will be careful.  
> I´ll give you feedback tomorrow.  
> Best regards.

No problem.  
I just checked in mp3tag and I found a small typo (already have edited my first post).  
Below works 100% as per your request.

1. Artist  
Regexp: **\W|^\W\*(\b\w+\b)\W\*$|\b(\w{3})\w+\b|\b(\w{1})\w\*?\b**  
Replace with: **$1$2$3**
2. Title  
Regexp: **\W|\b(\w)\w\*\b(?=.\*?\b\w+\b)**  
Replace with: **$1**

---

<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:** [February 9, 2026, 12:25pm UTC](https://community.mp3tag.de/t/shorten-words/16313/9 "2026-02-09T12:25:21Z")

</div>

Closed on February 9, 2026, 12:25pm UTC


