# Can I split a filename containing Track & Artist?

**URL:** https://community.mp3tag.de/t/can-i-split-a-filename-containing-track-artist/9198
**Category:** Support
**Created:** [October 24, 2009, 6:17pm UTC](https://community.mp3tag.de/t/can-i-split-a-filename-containing-track-artist/9198 "2009-10-24T18:17:39Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Montacute](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/cab0a1/32.png) [@Montacute](https://community.mp3tag.de/u/Montacute)
#### Post date: [October 24, 2009, 6:17pm UTC](https://community.mp3tag.de/t/can-i-split-a-filename-containing-track-artist/9198/1 "2009-10-24T18:17:39Z")

</div>

Hi

I have some mp3s that all have titles in this format:

"Purple Rain - Prince"

The track is first, then a space, hyphen, space, then the artist. The Artist field is "Various Artists" because the CD is a compilation.

I would like the Title to say "Purple Rain" and the Artist to say "Prince". Can mp3tag do this?

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [October 24, 2009, 8:32pm UTC](https://community.mp3tag.de/t/can-i-split-a-filename-containing-track-artist/9198/2 "2009-10-24T20:32:46Z")

</div>

Yes, this is possible using an ![:mt_act:](https://community.mp3tag.de/uploads/default/original/1X/318aa654f7a0c7c178d869991f6e8680b214cfc0.png ":mt\_act:") action **Guess values** with

_Source format:_ **%title%**  
_Guessing pattern:_ **%title% - %artist%**

---

<div class="post-metadata">

### Author: ![Montacute](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/cab0a1/32.png) [@Montacute](https://community.mp3tag.de/u/Montacute)
#### Post date: [October 24, 2009, 11:15pm UTC](https://community.mp3tag.de/t/can-i-split-a-filename-containing-track-artist/9198/3 "2009-10-24T23:15:40Z")

</div>

Excellent! It worked, and I was also able to change the filename so that the Artist was before the Title.

Thanks Florian!

---

<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:21pm UTC](https://community.mp3tag.de/t/can-i-split-a-filename-containing-track-artist/9198/4 "2026-02-09T12:21:53Z")

</div>


