# Newbie Struggling

**URL:** https://community.mp3tag.de/t/newbie-struggling/12102
**Category:** Support
**Created:** [June 5, 2011, 8:22pm UTC](https://community.mp3tag.de/t/newbie-struggling/12102 "2011-06-05T20:22:58Z")
**Posts on this page:** 1
**Showing post:** 10

<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: [June 6, 2011, 8:34am UTC](https://community.mp3tag.de/t/newbie-struggling/12102/10 "2011-06-06T08:34:56Z")

</div>

Begin Action Group **Test\_2011#20110606.Thorrrr** 

Action #1  
_Actiontype 7:_ **Import tag fields (guess values)**  
_Source format:_ **%_FILENAME%_**  
_Guessing pattern:_ **%P1%%P2%_%P3%_%P4%\_%P5%**

 

Action #2  
_Actiontype 5:_ **Format value**  
_Field:_ **P5**  
_Formatstring:_ **$caps2(%P5%)**

 

Action #3  
_Actiontype 5:_ **Format value**  
_Field:_ **P5**  
_Formatstring:_ **$regexp(%P5%,'(?\<!^)(\u\l|(?\<=\l)[\u\d])',' $1')**

 

Action #4  
_Actiontype 5:_ **Format value**  
_Field:_ **P0**  
_Formatstring:_ **%P5%÷-÷%P2%-%P3%**

 

Action #5  
_Actiontype 5:_ **Format value**  
_Field:_ **\_FILENAME**  
_Formatstring:_ **%P0%**

 

Action #6  
_Actiontype 9:_ **Remove fields**  
_Fields to remove (semicolon separated):_ **P0;P1;P2;P3;P4;P5**

 

_Note: Replace each special ÷ character with one space character._  
End Action Group **Test\_2011#20110606.Thorrrr** (6 Actions)

From:  
5871\_01\_01\_SC11\_learningWeb  
5871\_01\_02\_SC11\_whatisDW  
5871\_01\_03\_SC11\_CSSRules

To:  
Learning Web - 01-01  
Whatis DW - 01-02  
CSS Rules - 01-03

DD.20110606.1243.CEST

============================================================  
Addendum-1  
If someone does not need to split the 'camel cased' textual part and does not need to delimit the words by a space character, then the formatting action using the $regexp expression can be removed.  
The formatting action for tag-field 'P0' can be removed too.  
Also the upcasing can be taken into the formatting action.  
Also %P1% and %P4% can be replaced by %DUMMY%.  
So the reduced action group will look like the following ...

Begin Action Group **Test\_2011#20110606.Thorrr.2** 

Action #1  
_Actiontype 7:_ **Import tag fields (guess values)**  
_Source format:_ **%_FILENAME%_**  
_Guessing pattern:_ **%DUMMY%%P2%_%P3%_%DUMMY%\_%P5%**

 

Action #2  
_Actiontype 5:_ **Format value**  
_Field:_ **\_FILENAME**  
_Formatstring:_ **$caps2(%P5%)÷-÷%P2%-%P3%**

 

Action #3  
_Actiontype 9:_ **Remove fields**  
_Fields to remove (semicolon separated):_ **P2;P3;P5**

 

_Note: Replace each special ÷ character with one space character._  
End Action Group **Test\_2011#20110606.Thorrr.2** (3 Actions)

From:  
5871\_01\_01\_SC11\_learningWeb  
5871\_01\_02\_SC11\_whatisDW  
5871\_01\_03\_SC11\_CSSRules

To:  
LearningWeb - 01-01  
WhatisDW - 01-02  
CSSRules - 01-03

============================================================  
Addendum-2  
The reduced problem as described in Addendum-1 can also be solved by the converter "Filename - Filename".

 

**Convert** | **Filename - Filename** | **ALT+3**

 

_Select format string_

 

Old filename pattern:  
**%1\_%2\_%3\_%4\_%5**

 

New filename pattern:  
**$caps2(%5) - %2-%3**

 

Preview  
**LearningWeb - 01-01.mp3**

 

============================================================  
Addendum-3  
The complete problem including 'camel case splitting' can also be solved by the converter "Filename - Filename".

 

**Convert** | **Filename - Filename** | **ALT+3**

 

_Select format string_

 

Old filename pattern:  
**%1\_%2\_%3\_%4\_%5**

 

New filename pattern:  
**$regexp($caps2(%5),'(?\<!^)(\u\l|(?\<=\l)[\u\d])',' $1') - %2-%3**

 

Preview  
**Learning Web - 01-01.mp3**

 

============================================================  
Note:  
Due to the converter "Filename - Filename" Mp3tag does not need to work physically on tag-fields within the files.  
This might drastically reduce the processing time to a minimum.  
Especially when processing large files such as MP4 files.

DD.20110606.1906.CEST

---

_[View the full topic](https://community.mp3tag.de/t/newbie-struggling/12102)._
