# Can anyone help me with this error?

**URL:** https://community.mp3tag.de/t/can-anyone-help-me-with-this-error/19722
**Category:** General Discussion
**Created:** [January 27, 2018, 4:52am UTC](https://community.mp3tag.de/t/can-anyone-help-me-with-this-error/19722 "2018-01-27T04:52:34Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jrsousa2](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/278dde/32.png) [@jrsousa2](https://community.mp3tag.de/u/jrsousa2)
#### Post date: [January 27, 2018, 4:52am UTC](https://community.mp3tag.de/t/can-anyone-help-me-with-this-error/19722/1 "2018-01-27T04:52:34Z")

</div>

The replace command in the image is not working.  
Any clues why?  
Thanks

 ![](https://community.mp3tag.de/uploads/default/original/2X/8/89316daf6a7eb8e852d12952ed37597b8b91e425.JPG)

---

<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: [January 27, 2018, 8:59am UTC](https://community.mp3tag.de/t/can-anyone-help-me-with-this-error/19722/2 "2018-01-27T08:59:13Z")

</div>

> [@jrsousa2](#):
>
> The replace command in the image is not working.  
> Any clues why?  
> Thanks

I think that \_FILENAME does not include the extension - this can be found in \_FILENAME\_EXT.  
So you simply replace .flac with nothing (leave out the .mp3 in the search term).

---

<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: [January 27, 2018, 9:17am UTC](https://community.mp3tag.de/t/can-anyone-help-me-with-this-error/19722/3 "2018-01-27T09:17:42Z")

</div>

> [@jrsousa2](#):
>
> The replace command in the image is not working.  
> Any clues why?Thanks

There are different methods available to reach the goal, here are some examples.

From: Test.flac.mp3  
To: Test.mp3

1. 

Convert "Filename - Filename"  
Old filename pattern: %1.flac  
New filename pattern: %1

1. 

Convert "Tag - Filename"  
Formatstring: $replace(%\_filename%,'.flac',)

1. 

Convert "Tag - Filename"  
Formatstring: $replace(%\_filename%'.','.flac.',)

1. 

Action "Replace"  
Field: \_FILENAME  
Original: .flac  
Replace with:

DD.20180127.1200.CET

---

<div class="post-metadata">

### Author: ![jrsousa2](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/278dde/32.png) [@jrsousa2](https://community.mp3tag.de/u/jrsousa2)
#### Post date: [January 27, 2018, 4:59pm UTC](https://community.mp3tag.de/t/can-anyone-help-me-with-this-error/19722/4 "2018-01-27T16:59:46Z")

</div>

> [@ohrenkino](#):
>
> I think that \_FILENAME does not include the extension - this can be found in \_FILENAME\_EXT.  
> So you simply replace .flac with nothing (leave out the .mp3 in the search term).

Thanks, let me try this.

---

<div class="post-metadata">

### Author: ![jrsousa2](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/278dde/32.png) [@jrsousa2](https://community.mp3tag.de/u/jrsousa2)
#### Post date: [January 27, 2018, 5:00pm UTC](https://community.mp3tag.de/t/can-anyone-help-me-with-this-error/19722/5 "2018-01-27T17:00:54Z")

</div>

thank you both
