# Help with roman numerals?

**URL:** https://community.mp3tag.de/t/help-with-roman-numerals/10172
**Category:** Support
**Created:** [March 23, 2010, 7:16pm UTC](https://community.mp3tag.de/t/help-with-roman-numerals/10172 "2010-03-23T19:16:41Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [March 24, 2010, 6:06am UTC](https://community.mp3tag.de/t/help-with-roman-numerals/10172/2 "2010-03-24T06:06:27Z")

</div>

> [@NeiJiaTea](#):
>
> So, I'm pretty sure that I could solve this problem with regular expressions, but I don't actually know how to use them. ...

To know or not to know - that's the question.  
What did you do to learn about and solve your problems with Regular Expression?

> [@NeiJiaTea](#):
>
> ... The track titles are in a number of different formats:  
> Scene I Act i  
> Scene 1 Act 1  
> Scene I Act I  
> and all possible variations of capitalization in the "scene" and "act".

Well this seems to be easy or not. 😉

The Filename can be broken down into four parts, i. e. "word number word number", delimited by space character.  
You can split the filename and save the parts separately into four temporary tagfields, say TMP1, TMP2, TMP3, TMP4. Use action "guess values" or "format value with $regexp()" or other Mp3tag scripting functionalities to solve this step.

TMP1 and and TMP3 needs simple adjusting on casing, so use the Mp3tag standard function.

TMP2 and TMP4 needs harder work, because the numbers can be either of type arabic or roman.  
For further help and tools read there:  
[Converting roman to arabic number and vice versa](https://community.mp3tag.de/t/4565/1)  
[Regular Expression für Römische Ziffern](https://community.mp3tag.de/t/8924/2)

If the temporary tag fields got all their correct content, then combine them into a temporary tagfield TMP5, give it the structure as of the wanted filename. Use simply "format value" with a formatstring of "%TMP1% %TMP2% %TMP3% %TMP4%"

If all looks ok then set the actual filename using "format value" with the content of TMP5.  
Afterwards remove the temporay tagfields using the remove tag fields action.

That's all.

DD.20100324.0954.CET

---

_[View the full topic](https://community.mp3tag.de/t/help-with-roman-numerals/10172)._
