# Insert "\_" After 2 #

**URL:** https://community.mp3tag.de/t/insert-after-2/3617
**Category:** Support
**Created:** [August 5, 2006, 8:45pm UTC](https://community.mp3tag.de/t/insert-after-2/3617 "2006-08-05T20:45:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![don1959mp3](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/c2a13f/32.png) [@don1959mp3](https://community.mp3tag.de/u/don1959mp3)
#### Post date: [August 5, 2006, 8:45pm UTC](https://community.mp3tag.de/t/insert-after-2/3617/1 "2006-08-05T20:45:36Z")

</div>

How do I insert or remove 2 numbers in a filename string from the start while keeping the rest of the filename intact?

Ex: 7101 to 71\_01

or

Ex: 1971\_001 to 71\_01

?

Thanks, Donald

---

<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: [August 6, 2006, 9:01am UTC](https://community.mp3tag.de/t/insert-after-2/3617/2 "2006-08-06T09:01:52Z")

</div>

> [@Donald](#):
>
> How do I insert or remove 2 numbers in a filename string from the start while keeping the rest of the filename intact?  
> Ex: 7101 to 71\_01   
> or  
> Ex: 1971\_001 to 71\_01 ...

Donald, first you may look for other tools to do this renaming thing right on the filesystem layer.  
This might be easier than doing it by Mp3tag, try out _Total Commander_.

Using Mp3tag try the following algorithm:
1. Create an **Actiongroup** and name it to '_TEMP field create and remove_'.
2. Create an **Action** mode **Tag Field Formatting** :

_Field_: TEMP  
_Formatstring_: **$left(%_filename%__,$sub($strchr(%filename%,' '),1))_**

3. _Create an **Action** mode **Tag Field Formatting** :  
 Field: TEMP  
 Formatstring: **$iflonger(%TEMP%,4,$mid(%TEMP%,3,2)'****'$right(%TEMP%,2),$left(%TEMP%,2)' **_**'$right(%TEMP%,2))**
4. Create an **Action** mode **Tag Field Formatting** :  
_Field_: TEMP  
_Formatstring_: **%TEMP%' '$right(%\_filename%,$sub($len(%\_filename%),$strchr(%\_filename%,' ')))**
5. Create an **Action** mode **Tag Field Formatting** :  
_Field_: \_FILENAME  
_Formatstring_: **%TEMP%**
6. Create an **Action** mode **Tag Field Remove** :  
_Field_: TEMP
7. Run the Actiongroup '_TEMP field create and remove_' against your selected files.  
Afterwards all selected files should have a proper formatted filename.  
If there was any problem on renaming the files you may Undo the last operation [Ctrl+Z]
8. Ready.

DD.20060806.1255  
DD.20060808.0540 Edit

---

<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:19pm UTC](https://community.mp3tag.de/t/insert-after-2/3617/3 "2026-02-09T12:19:50Z")

</div>


