# Search and Replace Question

**URL:** https://community.mp3tag.de/t/search-and-replace-question/1481
**Category:** Support
**Created:** [November 27, 2004, 10:36pm UTC](https://community.mp3tag.de/t/search-and-replace-question/1481 "2004-11-27T22:36:11Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![psycho2K](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@psycho2K](https://community.mp3tag.de/u/psycho2K)
#### Post date: [November 27, 2004, 10:36pm UTC](https://community.mp3tag.de/t/search-and-replace-question/1481/1 "2004-11-27T22:36:11Z")

</div>

First of all, thanks to Florian for helping me fix my Excel import/export issue.

My new issue has me stumped. I need to remove all of the periods (.) in the filename without affecting the last period, which creates the extension.

I don't see any way to create this in a single expression replace. I've tried a 2-line replace and get some weird behavior. The program appears to want to add periods to the end of the filename if none is present.

Any suggestions for a more elegant way to handle this?

Thanks,

Jeremy

[Catalan.txt](https://community.mp3tag.de/uploads/default/original/2X/0/0211a13723dd0115b636adc878716cc345721d9a.txt) (31.1 KB)

---

<div class="post-metadata">

### Author: ![nickless](https://community.mp3tag.de/user_avatar/community.mp3tag.de/nickless/32/36_2.png) [@nickless](https://community.mp3tag.de/u/nickless)
#### Post date: [November 28, 2004, 12:10pm UTC](https://community.mp3tag.de/t/search-and-replace-question/1481/2 "2004-11-28T12:10:43Z")

</div>

Hi

> [@](#):
>
> My new issue has me stumped. I need to remove all of the periods (.) in the filename without affecting the last period, which creates the extension.

Just use a regular expression with:  
Field: \_FILENAME  
Expression: (.\*)(.\w+)  
Replace with: $replace($1,., )$2  
(all points will be replaced with spaces)

or

Replace with: $replace($1,.,)$2  
(all points will be removed)

Note: this uses the new format of the scripting expressions, so use the new development build

nickless

---

<div class="post-metadata">

### Author: ![billyvnilly](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/7ba0ec/32.png) [@billyvnilly](https://community.mp3tag.de/u/billyvnilly)
#### Post date: [May 21, 2005, 3:17am UTC](https://community.mp3tag.de/t/search-and-replace-question/1481/3 "2005-05-21T03:17:48Z")

</div>

Hey Florian,

How would you change this to all remove periods from '\_TAG'

Also, curious if you can also do this to %aritst%\%album%\ of the filename

Thanks,  
Billy - one of your many pimps over at [winamp.com](http://winamp.com) forums 😃

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [May 21, 2005, 5:28pm UTC](https://community.mp3tag.de/t/search-and-replace-question/1481/4 "2005-05-21T17:28:36Z")

</div>

Hello Billy,

> [@](#):
>
> How would you change this to all remove periods from '\_TAG'

Just create a new action Replace for the field **\_TAG** and replace the period by nothing.

> [@](#):
>
> Also, curious if you can also do this to %aritst%\%album%\ of the filename

No. You can create new folders and subfolders using the converter Tag - Filename but I'd use a File Manager with renaming/replacing options like Total Commander with its Multi-Rename Tool.

Best regards,  
~ Florian

---

<div class="post-metadata">

### Author: ![billyvnilly](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/7ba0ec/32.png) [@billyvnilly](https://community.mp3tag.de/u/billyvnilly)
#### Post date: [May 24, 2005, 12:40am UTC](https://community.mp3tag.de/t/search-and-replace-question/1481/5 "2005-05-24T00:40:47Z")

</div>

> [@](#):
>
> Just create a new action Replace for the field **\_TAG** and replace the period by nothing.

whoa, i was making it way to hard... duh ![:rolleyes:](https://community.mp3tag.de/uploads/default/original/1X/3a79e8b0b7d169b30216785521d7c6f4f895c421.gif ":rolleyes:")

and i shall check out Total Commander, thanks!

--Billy

---

<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/search-and-replace-question/1481/6 "2026-02-09T12:19:16Z")

</div>


