# Insert characters in specific positions at tag fields

**URL:** https://community.mp3tag.de/t/insert-characters-in-specific-positions-at-tag-fields/13966
**Category:** Support
**Created:** [October 4, 2012, 11:31pm UTC](https://community.mp3tag.de/t/insert-characters-in-specific-positions-at-tag-fields/13966 "2012-10-04T23:31:20Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ykeyke](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/y/d26b3c/32.png) [@ykeyke](https://community.mp3tag.de/u/ykeyke)
#### Post date: [October 4, 2012, 11:31pm UTC](https://community.mp3tag.de/t/insert-characters-in-specific-positions-at-tag-fields/13966/1 "2012-10-04T23:31:20Z")

</div>

Hi,

I'm trying to insert the ":" character in comment field in some specific positions (after the 10th and 15th letter from the beginning and the end of the text). After searching (/t/967/5 the only thing that come is how to insert at the end (appending).

Do you have any idea on how to do that??

Thanks

PD: It would be nice to learn how to insert a string of characters also **at specific positions** , or **after some characters**.

---

<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: [October 5, 2012, 3:38am UTC](https://community.mp3tag.de/t/insert-characters-in-specific-positions-at-tag-fields/13966/2 "2012-10-05T03:38:53Z")

</div>

Get yourself aquainted with the scripting functions $LEFT, $MID, $RIGHT, $LEN  
Use these functions in an action of the type "Format tag field".

To insert a : at position 11 in TITLE use this construction:  
$left(%title%,10):%mid(%title%,10,$len(%title%))

For "inserting after some characters" you could use the action "Replace with regular expression" - but for this it is necessary that that "character" is part of a unique pattern.

---

<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: [October 5, 2012, 6:07am UTC](https://community.mp3tag.de/t/insert-characters-in-specific-positions-at-tag-fields/13966/3 "2012-10-05T06:07:34Z")

</div>

> [@ykeyke](#):
>
> ... I'm trying to insert the ":" character in comment field in some specific positions (after the 10th and 15th letter from the beginning and the end of the text). ... Do you have any idea on how to do that?? ... It would be nice to learn how to insert a string of characters also **at specific positions** , or **after some characters**.

Use action "Format value".

**Three steps ... $left(%COMMENT%,10)':'$cutLeft(%COMMENT%,10) From: 0123456789abcdefghikABCDEFGHIK To : 0123456789:abcdefghikABCDEFGHIK $left(%COMMENT%,16)':'$cutLeft(%COMMENT%,16) From: 0123456789:abcdefghikABCDEFGHIK To : 0123456789:abcde:fghikABCDEFGHIK %COMMENT%':' From: 0123456789:abcde:fghikABCDEFGHIK To : 0123456789:abcde:fghikABCDEFGHIK: One step ... $mid(%COMMENT%,1,10)':'$mid(%COMMENT%,11,5)':'$mid(%COMMENT%,16,$sub($len(%COMMENT%),15))':' From: 0123456789abcdefghikABCDEFGHIK To : 0123456789:abcde:fghikABCDEFGHIK:**

Beside the shown fundamental string manipulations you can choose the fitting string function for your problem out of a set of string functions.  
The functions $replace and $regexp are often used too.  
See Mp3tag manual "Scripting Functions".

DD.20121005.1030.CEST

---

<div class="post-metadata">

### Author: ![ykeyke](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/y/d26b3c/32.png) [@ykeyke](https://community.mp3tag.de/u/ykeyke)
#### Post date: [October 6, 2012, 9:28am UTC](https://community.mp3tag.de/t/insert-characters-in-specific-positions-at-tag-fields/13966/4 "2012-10-06T09:28:50Z")

</div>

OK, Thank you, I get it.

I have another question, but as it is different, I'll create a new topic.

---

<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:24pm UTC](https://community.mp3tag.de/t/insert-characters-in-specific-positions-at-tag-fields/13966/5 "2026-02-09T12:24:05Z")

</div>


