# Replace a fixed text string (in File Name) with a variable %year%

**URL:** https://community.mp3tag.de/t/replace-a-fixed-text-string-in-file-name-with-a-variable-year/60676
**Category:** Support
**Created:** [April 11, 2023, 12:57pm UTC](https://community.mp3tag.de/t/replace-a-fixed-text-string-in-file-name-with-a-variable-year/60676 "2023-04-11T12:57:02Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [April 11, 2023, 1:05pm UTC](https://community.mp3tag.de/t/replace-a-fixed-text-string-in-file-name-with-a-variable-year/60676/2 "2023-04-11T13:05:11Z")

</div>

%year% can be used where you are expected to enter a format string.

> [@dec](#):
>
> this is one example ...
> 
> $replace(%filename%,YEAR UNK,%year%)

If that is the accurate copy then you have replaced the string "YEAR UNK" with the value from YEAR in the user-defined (and probably non-existent) field FILENAME.  
if you want to address the filename, use \_FILENAME.  
Sometimes, as said in

> [@Hints for asking Support Requests](https://community.mp3tag.de/t/hints-for-asking-support-requests/56190):
>
> If you need support using Mp3tag, you can help the community members that are about to support you in finding a solution or workaround to your problem, by following these simple guidelines. Be descriptive, also in what you’ve already tried Please give a short explanation what’s not working as expected or what you’re trying to achieve. It’s best to know any details about the problem at hand and especially, what steps you’ve already tried to solve it by yourself. Helpful information also includ…

a screendump helps.

You say that you have used

> [@dec](#):
>
> both Convert and in Actions

but you do not tell us which Convert function you used and which action.

---

_[View the full topic](https://community.mp3tag.de/t/replace-a-fixed-text-string-in-file-name-with-a-variable-year/60676)._
