# Getting subtring from field value

**URL:** https://community.mp3tag.de/t/getting-subtring-from-field-value/8453
**Category:** Support
**Created:** [June 15, 2009, 5:00am UTC](https://community.mp3tag.de/t/getting-subtring-from-field-value/8453 "2009-06-15T05:00:08Z")
**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, 5:00am UTC](https://community.mp3tag.de/t/getting-subtring-from-field-value/8453/1 "2009-06-15T05:00:08Z")

</div>

is there a function to get a substring from a field and transfer it to a different field??

---

<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:52am UTC](https://community.mp3tag.de/t/getting-subtring-from-field-value/8453/2 "2009-06-15T06:52:45Z")

</div>

Here is an example that makes use of some string related functions of the Mp3tag script language.

Begin Actionsgroup **masterp**

Action #1  
_Actiontype 5:_ **Format tag field**  
_Field:_ **FIELD\_A**  
_Formatstring:_ **This÷is÷a÷string.**

Action #2  
_Actiontype 5:_ **Format tag field**  
_Field:_ **FIELD\_B**  
_Formatstring:_ **$caps3($mid(%FIELD\_A%,3,2)÷$left(%FIELD\_A%,4)÷$mid(%FIELD\_A%,2,3)÷$replace($right(%FIELD\_A%,5),'.','?'))**

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

DD.20090615.1052.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/getting-subtring-from-field-value/8453/3 "2026-02-09T12:21:35Z")

</div>


