# Automatic replacement of TITLE when using an export action

**URL:** <https://community.mp3tag.de/t/automatic-replacement-of-title-when-using-an-export-action/51081>\
**Category:** Support\
**Created:** [December 8, 2020, 8:22pm UTC](https://community.mp3tag.de/t/automatic-replacement-of-title-when-using-an-export-action/51081 "2020-12-08T20:22:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zerow](https://community.mp3tag.de/user_avatar/community.mp3tag.de/zerow/32/11379_2.png) [@Zerow](https://community.mp3tag.de/u/Zerow)\
**Post date:** [December 8, 2020, 8:22pm UTC](https://community.mp3tag.de/t/automatic-replacement-of-title-when-using-an-export-action/51081/1 "2020-12-08T20:22:53Z")

</div>

I use this script for exporting a list of files

`$TITLE(C:\Users\YOUR-USER-NAME\Documents\! Mp3tag export list %_DATETIME%.txt,utf-16)$loop(%_filename%,1)>> R + E ~ >| - %TITLE% $loopend()`

Would it be possible to automatically replace something [if it it present] to something else?  
` `  
` `  
For example among all of the files loaded to Mp3tag and selected for the list creation there would some files that would have [all of those some files] a title like

`A (B) {C)`

but I would prefer to see in the TXT file

`X [Y] #Z`

every time [thus such exchange would happen often many times]

Right now I have to make such replacements manually within the TXT file; which I do often and repeatedly for the same `TITLE`s, which is both time consuming and plain tiresome

---

<div class="post-metadata">

**Author:** ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)\
**Post date:** [December 8, 2020, 9:42pm UTC](https://community.mp3tag.de/t/automatic-replacement-of-title-when-using-an-export-action/51081/2 "2020-12-08T21:42:13Z")

</div>

The export supports the scripting functions (take a look at the help file), hence you can use commands like ` $replace(string,from,to)` to change the output.  
Example:  
`$replace(%title%,'A (B) {C)','X [Y] #Z')`

---

<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:** [January 9, 2021, 5:24pm UTC](https://community.mp3tag.de/t/automatic-replacement-of-title-when-using-an-export-action/51081/3 "2021-01-09T17:24:55Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
