# Please help with another special regular expression

**URL:** https://community.mp3tag.de/t/please-help-with-another-special-regular-expression/10938
**Category:** Support
**Created:** [October 13, 2010, 8:12am UTC](https://community.mp3tag.de/t/please-help-with-another-special-regular-expression/10938 "2010-10-13T08:12:04Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [October 24, 2010, 7:20pm UTC](https://community.mp3tag.de/t/please-help-with-another-special-regular-expression/10938/4 "2010-10-24T19:20:05Z")

</div>

> [@globetrotters1](#):
>
> **Problem 2 (which I think is unsolvable):**
> 
> The formatting I receive from Amazon or freedb looks like this  
> **01 - String Quartet No 14 in d-moll, D 810 - Allegro**  
> **02 - String Quartet No 14 in d-moll, D 810 - Andante con moto**  
> **03 - String Quartet No 14 in d-moll, D 810 - Scherzo: Allegro molto**  
> **04 - String Quartet No 14 in d-moll, D 810 - Presto**  
> and I would like to have it like this  
> **01 - String Quartet No 14 in d-moll, D 810 - I - Allegro**  
> **02 - String Quartet No 14 in d-moll, D 810 - II - Andante con moto**  
> **03 - String Quartet No 14 in d-moll, D 810 - III - Scherzo: Allegro molto**  
> **04 - String Quartet No 14 in d-moll, D 810 - IV - Presto**
> 
> That would mean that I can do a roman number sequencing action in consecutive tracks I highlight. Until now I have to do all this manually, which is very time consuming 🙂
> 
> And to make it even more difficult, it would be very cool to be able to solve "elimination of same string elements from second occurrence on", so that it looks like this  
> **01 - String Quartet No 14 in d-moll, D 810 - I - Allegro**  
> **02 - II - Andante con moto**  
> **03 - III - Scherzo: Allegro molto**  
> **04 - IV - Presto**
> 
> Appreciate your help!  
> Thanks  
> 😆

Actiongroup:

1. Format Value:  
Field:  
TITLE  
Format String:  
$regexp(%title%,(._?) - (._?) - (._),$1) - $if($eql($left(%title%,2),01),$regexp(%title%,(._?) - (._?) - (._),$2 - $1),$regexp(%title%,(._?) - (._?) - (._),$1)) - $regexp(%title%,(._?) - (._?) - (._),$3)

2. Replace with regular expression:  
Field:  
TITLE  
Regular Expression:

- (\d\d) -  
Replace matches with:
- $replace($1,01,I,02,II,03,III,04,IV,05,V,06,VI,07,VII,08,VIII,09,IX,10,X) -

works for roman numbers I-X, but you can append as many numbers as you need in the last string.

EDIT:  
Problem 1 sounds simple:  
Include for every every key-signature which sould be changed something like this:

Action: Replace  
Field: TITLE  
Original: in B  
Replace with: in H-Dur

will be a lot of work for 4 different languages and the different key signatures.

---

_[View the full topic](https://community.mp3tag.de/t/please-help-with-another-special-regular-expression/10938)._
