# Add Artist initials to Filename

**URL:** <https://community.mp3tag.de/t/add-artist-initials-to-filename/57060>\
**Category:** Support\
**Created:** [April 17, 2022, 12:13am UTC](https://community.mp3tag.de/t/add-artist-initials-to-filename/57060 "2022-04-17T00:13:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JohnE\_EC](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/ccd318/32.png) [@JohnE\_EC](https://community.mp3tag.de/u/JohnE_EC)\
**Post date:** [April 17, 2022, 12:13am UTC](https://community.mp3tag.de/t/add-artist-initials-to-filename/57060/1 "2022-04-17T00:13:53Z")

</div>

Hi,

I'm new here and hope that someone can help me with me question.

I am wanting to change the Filename for live concert recordings in FLAC to the standard way these are presented, which is:

JAMC 20220417 01. Song Name 1.flac

where:

```auto
JAMC = initials for Jesus And Mary Chain (or whatever group)
20220417 = Year (date) without dashes
01. = Track
Song Name 1 = Title

```

I am able to get all bits, except for the initials for the artist, in an Action. Here is what I have done:

```auto
Format value
Field: _FILENAME
Format string: %artist% $replace(%year%,-,) $num(%track%,2). %title%

```

Obviously I need to "just" extract the initial for %artist%. I have tried various things but haven't worked out how to do this.

It would be great to get some help with this, if possible, please.

---

<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:** [April 17, 2022, 6:38am UTC](https://community.mp3tag.de/t/add-artist-initials-to-filename/57060/2 "2022-04-17T06:38:27Z")

</div>

You could try:  
`$regexp(%artist%,'\W|^\W*(\b\w+\b)\W*$|\b(\w{1})\w+\b|\b(\w{1})\w*?\b',$1$2$3)`

---

<div class="post-metadata">

**Author:** ![JohnE\_EC](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/ccd318/32.png) [@JohnE\_EC](https://community.mp3tag.de/u/JohnE_EC)\
**Post date:** [April 17, 2022, 8:36pm UTC](https://community.mp3tag.de/t/add-artist-initials-to-filename/57060/3 "2022-04-17T20:36:55Z")

</div>

Wow, that appears to work. That is a rather complicated looking expression. Thanks so much for this.

---

<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:** [May 17, 2022, 8:37pm UTC](https://community.mp3tag.de/t/add-artist-initials-to-filename/57060/4 "2022-05-17T20:37:06Z")

</div>

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