# Tag - Filename ALT+1 String

**URL:** https://community.mp3tag.de/t/tag-filename-alt-1-string/70876
**Category:** Support
**Created:** [March 14, 2026, 6:24pm UTC](https://community.mp3tag.de/t/tag-filename-alt-1-string/70876 "2026-03-14T18:24:35Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![MrMix](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/f4b2a3/32.png) [@MrMix](https://community.mp3tag.de/u/MrMix)
#### Post date: [March 14, 2026, 6:24pm UTC](https://community.mp3tag.de/t/tag-filename-alt-1-string/70876/1 "2026-03-14T18:24:35Z")

</div>

Hello and always big thank you for this great program !

Right now I’ve the following string to rename the filename  
$num(%track%,2). $left(%album%,25)\_%title%

I’d like to change it in $num(%track%,2). XXXXXXXXX\_%title% where  
XXXXXXX is the second word of %artist%

Example: artist George Michael ——–\> 01. Michael\_Careless Whisper.mp3

Is it possible ?

Thank you for yr help  
MM

---

<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: [March 14, 2026, 6:29pm UTC](https://community.mp3tag.de/t/tag-filename-alt-1-string/70876/2 "2026-03-14T18:29:40Z")

</div>

For

> [@MrMix](#):
>
> XXXXXXX

Try:  
`$regexp(%artist%,.* (.*),$1)`

---

<div class="post-metadata">

### Author: ![MrMix](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/f4b2a3/32.png) [@MrMix](https://community.mp3tag.de/u/MrMix)
#### Post date: [March 14, 2026, 6:50pm UTC](https://community.mp3tag.de/t/tag-filename-alt-1-string/70876/3 "2026-03-14T18:50:19Z")

</div>

Working just great ! Thanks

Just to learn something new, could you pls. explain me how it’s working ?

MM

---

<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: [March 14, 2026, 6:53pm UTC](https://community.mp3tag.de/t/tag-filename-alt-1-string/70876/4 "2026-03-14T18:53:55Z")

</div>

Take the contents of the field %artist%,  
Select any bunch of characters until you hit a space, then take then next bunch of characters and remember them.  
Finally output the remembered bit.

---

<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 21, 2026, 6:54pm UTC](https://community.mp3tag.de/t/tag-filename-alt-1-string/70876/5 "2026-03-21T18:54:15Z")

</div>

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