# Need help with regex for ARTISTSORT

**URL:** https://community.mp3tag.de/t/need-help-with-regex-for-artistsort/12653
**Category:** Support
**Created:** [November 1, 2011, 11:20pm UTC](https://community.mp3tag.de/t/need-help-with-regex-for-artistsort/12653 "2011-11-01T23:20:44Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![paulgj](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/b5e925/32.png) [@paulgj](https://community.mp3tag.de/u/paulgj)
#### Post date: [November 1, 2011, 11:20pm UTC](https://community.mp3tag.de/t/need-help-with-regex-for-artistsort/12653/1 "2011-11-01T23:20:44Z")

</div>

Hello,

![:book:](https://community.mp3tag.de/uploads/default/original/1X/0036d5b68f6226c53f6c68abfd0a7b8096fd4505.gif ":book:") I have been studying regex syntax today like crazy but cannot figure this one out...

I have my ARTIST tags in the following format:

ArtistFirstName ArtistLastName, AdditionalArtistFirstName AdditionalArtistLastName, etc

I want to create the ARTISTSORT tag with the value as follows:

ArtistLastName, ArtistFirstName; AdditionalArtistLastName, AdditionalArtistFirstName; etc

Typically the ARTIST tag will contain only a single name, but often I have multiple names so ideally the conversion should be able to handle both cases.

Based on this thread [Multiple value artist tag to multiple value artistsort](https://community.mp3tag.de/t/12599/1) I have copied the %artist% tag into the ARTISTSORT tag but am not getting correct results with the replace with regex action.

Any help would be appreciated.

Thanks!

---

_[View the full topic](https://community.mp3tag.de/t/need-help-with-regex-for-artistsort/12653)._
