# Formating Field

**URL:** https://community.mp3tag.de/t/formating-field/8451
**Category:** Support
**Created:** [June 15, 2009, 3:52am UTC](https://community.mp3tag.de/t/formating-field/8451 "2009-06-15T03:52:52Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![masterp](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/d07c76/32.png) [@masterp](https://community.mp3tag.de/u/masterp)
#### Post date: [June 15, 2009, 3:52am UTC](https://community.mp3tag.de/t/formating-field/8451/1 "2009-06-15T03:52:52Z")

</div>

I was wondering how to format a field based on a string that occurs after a specific set of characters in the filename.

Ex.) filename: "artistName (charSequence desiredString)- songName.mp3"

I would like to use the desired string as a certain field

thanks alot

---

<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 15, 2009, 6:12am UTC](https://community.mp3tag.de/t/formating-field/8451/2 "2009-06-15T06:12:55Z")

</div>

> [@masterp](#):
>
> ... I was wondering how to format a field based on a string that occurs after a specific set of characters in the filename.

This is an attempt that does not respect the content of 'charSequence' but looks only at the structure of the filename string.

 

**Convert** | **Filename - Tag** | **ALT+2**

 

_Select format string_

 

Formatstring: artistName (charSequence desiredString)- songName.mp3  
**%dummy% (%dummy% %DESIRED\_STRING%)- %dummy%**

 

Preview  
**DESIRED\_STRING** | desiredString

 

DD.20090615.1012.CEST

This is an attempt that does not respect the content of 'charSequence' but looks only at the structure of the filename string.

Begin Actionsgroup **masterp**  
Action #1  
_Actiontype 5:_ **Format tag field**  
_Field:_ **DESIRED\_STRING**  
_Formatstring:_ **$regexp(%\_filename%,'^.+?÷(.+?÷(.+?))-÷.+?$',$1)**

_Note: Replace one special character ÷ with one space character._  
End Actionsgroup **masterp** (1 Action)

If there are many tracks with the same 'charSequence' you may filter your tracklist to show only tracks with this special 'charSequence' and then run the action against the group of selected files.

In this regular expression $regexp(%\_filename%,'^.+?÷(.+?÷( **.+?** ))-÷.+?$',$1) the bold red part is the placeholder for 'charSequence'.

DD.20090615.1032.CEST

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [February 9, 2026, 12:21pm UTC](https://community.mp3tag.de/t/formating-field/8451/3 "2026-02-09T12:21:35Z")

</div>


