# I shall like a code for named figures Roman.

**URL:** https://community.mp3tag.de/t/i-shall-like-a-code-for-named-figures-roman/16328
**Category:** General Discussion
**Created:** [November 14, 2014, 5:25pm UTC](https://community.mp3tag.de/t/i-shall-like-a-code-for-named-figures-roman/16328 "2014-11-14T17:25:14Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![sylvain.dmde](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/c57346/32.png) [@sylvain.dmde](https://community.mp3tag.de/u/sylvain.dmde)
#### Post date: [November 14, 2014, 5:25pm UTC](https://community.mp3tag.de/t/i-shall-like-a-code-for-named-figures-roman/16328/1 "2014-11-14T17:25:14Z")

</div>

Hello, I have a code for named figures Roman of the tiny in capital letter but I would like converted them of the first letter in capital letter in capital letter for quite letter for the tag of my album. You could modify the code. Thank you.

```
$regexp(%TITLE%,'\b(?i:(?=[MDCLXVI])((M{0,3})((C[DM])|(D?C{0,3}))?((X[LC])|(L?X{0,3})|L)?((I[VX])|(V?(I{0,3}))|V)?))\b','\U$0')
```

---

<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: [November 14, 2014, 6:03pm UTC](https://community.mp3tag.de/t/i-shall-like-a-code-for-named-figures-roman/16328/2 "2014-11-14T18:03:41Z")

</div>

I think there is already a thread that deals with roman digits. See here:  
[Action group to captitalize Roman numerals](https://community.mp3tag.de/t/4092/1)

---

<div class="post-metadata">

### Author: ![sylvain.dmde](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/c57346/32.png) [@sylvain.dmde](https://community.mp3tag.de/u/sylvain.dmde)
#### Post date: [November 18, 2014, 5:55pm UTC](https://community.mp3tag.de/t/i-shall-like-a-code-for-named-figures-roman/16328/3 "2014-11-18T17:55:57Z")

</div>

This is not quite my needs. If there is a capital letter at the beginning of Roman numerals the proposed code is not taken into account. I do not know if you have the skill if you could convert the following code to the Roman numerals beginning with a capital letter and ends with a tiny or my convertise The totals all uppercase. In thank you.

```
$regexp(%TITLE%,'\b(?i:(?=[MDCLXVI])((M{0,3})((C[DM])|(D?C{0,3}))?((X[LC])|(L?X{0,3})|L)?((I[VX])|(V?(I{0,3}))|V)?))\b','\U$0')
```

---

<div class="post-metadata">

### Author: ![vkostas](https://community.mp3tag.de/user_avatar/community.mp3tag.de/vkostas/32/227_2.png) [@vkostas](https://community.mp3tag.de/u/vkostas)
#### Post date: [November 19, 2014, 12:23am UTC](https://community.mp3tag.de/t/i-shall-like-a-code-for-named-figures-roman/16328/4 "2014-11-19T00:23:39Z")

</div>

$regexp(%TITLE%,'\b(?=[MDCLXVI])(M{0,3})(C[DM]|D?C{0,3})(X[LC]|L?X{0,3})(I[VX]|V?I{0,3})\b','\U$0'  
Explained in detail in this new thread...  
[/t/16343/1](https://community.mp3tag.de/t/16343/1)

---

<div class="post-metadata">

### Author: ![sylvain.dmde](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/c57346/32.png) [@sylvain.dmde](https://community.mp3tag.de/u/sylvain.dmde)
#### Post date: [November 21, 2014, 10:18am UTC](https://community.mp3tag.de/t/i-shall-like-a-code-for-named-figures-roman/16328/5 "2014-11-21T10:18:24Z")

</div>

According to your code **$regexp(%TITLE%,'\b(?=[MDCLXVI])(M{0,3})(C[DM]|D?C{0,3})(X[LC]|L?X{0,3})(I[VX]|V?I{0,3})\b','\U$0'** I makes how? Because it does not work.

And if I made according to your link:

Action type: **Replace with regular expression.**

Field:

Regular expression: **\b(?=[MDCLXVI])(M{0,3})(C[DM]|D?C{0,3})(X[LC]|L?X{0,3})(I[VX]|V?I{0,3})\b**[/b]

Replace with: **$upper($0)**  
   
**Case-sensitive comparison**

It does not work either.

---

<div class="post-metadata">

### Author: ![vkostas](https://community.mp3tag.de/user_avatar/community.mp3tag.de/vkostas/32/227_2.png) [@vkostas](https://community.mp3tag.de/u/vkostas)
#### Post date: [November 21, 2014, 10:39am UTC](https://community.mp3tag.de/t/i-shall-like-a-code-for-named-figures-roman/16328/6 "2014-11-21T10:39:38Z")

</div>

Yes, you have to use action replace with regular expression. I forgot to update this thread, sorry.

---

<div class="post-metadata">

### Author: ![sylvain.dmde](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/c57346/32.png) [@sylvain.dmde](https://community.mp3tag.de/u/sylvain.dmde)
#### Post date: [November 22, 2014, 11:31am UTC](https://community.mp3tag.de/t/i-shall-like-a-code-for-named-figures-roman/16328/7 "2014-11-22T11:31:26Z")

</div>

By doing exactly:

Action type: Replace with regular expression.  
Field:   
Regular expression: \b(?=[MDCLXVI])(M{0,3})(C[DM]|D?C{0,3})(X[LC]|L?X{0,3})(I[VX]|V?I{0,3})\b[/b]  
Replace with: $upper($0)  
Case-sensitive comparison

Not anything or done.

I try to change the Field, nothing, no capital development for Roman chirffres whatever he fasont which are written uppercase or lowercase or uppercase and lowercase.

---

<div class="post-metadata">

### Author: ![vkostas](https://community.mp3tag.de/user_avatar/community.mp3tag.de/vkostas/32/227_2.png) [@vkostas](https://community.mp3tag.de/u/vkostas)
#### Post date: [November 22, 2014, 2:15pm UTC](https://community.mp3tag.de/t/i-shall-like-a-code-for-named-figures-roman/16328/8 "2014-11-22T14:15:10Z")

</div>

Of course it works. Please remove [/b] (maybe my mistake) which is formatting tag for bold.  
\b(?=[MDCLXVI])(M{0,3})(C[DM]|D?C{0,3})(X[LC]|L?X{0,3})(I[VX]|V?I{0,3})\b

---

<div class="post-metadata">

### Author: ![sylvain.dmde](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/c57346/32.png) [@sylvain.dmde](https://community.mp3tag.de/u/sylvain.dmde)
#### Post date: [November 23, 2014, 10:10am UTC](https://community.mp3tag.de/t/i-shall-like-a-code-for-named-figures-roman/16328/9 "2014-11-23T10:10:28Z")

</div>

I Am sorry I did it with the following code

\b(?=[MDCLXVI])(M{0,3})(C[DM]|D?C{0,3})(X[LC]|L?X{0,3})(I[VX]|V?I{0,3})\b

or

(?=[MDCLXVI])(M{0,3})(C[DM]|D?C{0,3})(X[LC]|L?X{0,3})(I[VX]|V?I{0,3})

It still does not work.

---

<div class="post-metadata">

### Author: ![sylvain.dmde](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/c57346/32.png) [@sylvain.dmde](https://community.mp3tag.de/u/sylvain.dmde)
#### Post date: [November 23, 2014, 10:48am UTC](https://community.mp3tag.de/t/i-shall-like-a-code-for-named-figures-roman/16328/10 "2014-11-23T10:48:34Z")

</div>

I'm sorry again but I try again with my old code by

value Format  
Field: TITLE  
Format string:$regexp(%TITLE%,'\b(?i:(?=[MDCLXVI])((M{0,3})((C[DM])|(D?C{0,3}))?((X[LC])|(L?X{0,3})|L)?((I[VX])|(V?(I{0,3}))|V)?))\b','\U$0')

All work, even if there Capitalize first letter of the word or not. I'm sorry for disturbing you for nothing.
