# replace character only if it is the last letter

**URL:** <https://community.mp3tag.de/t/replace-character-only-if-it-is-the-last-letter/14479>\
**Category:** Support\
**Created:** [February 23, 2013, 5:28am UTC](https://community.mp3tag.de/t/replace-character-only-if-it-is-the-last-letter/14479 "2013-02-23T05:28:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![iml](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/i/a4c791/32.png) [@iml](https://community.mp3tag.de/u/iml)\
**Post date:** [February 23, 2013, 5:28am UTC](https://community.mp3tag.de/t/replace-character-only-if-it-is-the-last-letter/14479/1 "2013-02-23T05:28:43Z")

</div>

Hello ![:rolleyes:](https://community.mp3tag.de/uploads/default/original/1X/3a79e8b0b7d169b30216785521d7c6f4f895c421.gif ":rolleyes:")  
I' m trying to replace a specifique letter with something else but only if its the last letter of a word  
For example, in a random phrase "Flowers & guns" I'm trying to replace the "s" with lets say "t"  
I've been using ACTION\>REPLACE\>"s "\>"t " (with space) but that covers only the first word.  
If I use wildcard ".s" then all the "s" gets replaced & I dont want that.  
Is there a way to make a rule that replaces only the last letter of a word if it is a specifique one?

---

<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:** [February 23, 2013, 8:03am UTC](https://community.mp3tag.de/t/replace-character-only-if-it-is-the-last-letter/14479/2 "2013-02-23T08:03:20Z")

</div>

> [@iml](#):
>
> ... but that covers only the first word.  
> ..

That should cover all words with an s at the end, followed by a blank.  
You could try 2 actions of the "Replace with regular expression" as an action group.  
The first handles the words followed by a blank (e.g. with the expression you have already tried).  
The second handles the words at the end of the field:  
Search-String s$  
Replace with: t

---

<div class="post-metadata">

**Author:** ![iml](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/i/a4c791/32.png) [@iml](https://community.mp3tag.de/u/iml)\
**Post date:** [February 25, 2013, 3:16am UTC](https://community.mp3tag.de/t/replace-character-only-if-it-is-the-last-letter/14479/3 "2013-02-25T03:16:51Z")

</div>

> [@ohrenkino](#):
>
> That should cover all words with an s at the end, followed by a blank.  
> You could try 2 actions of the "Replace with regular expression" as an action group.  
> The first handles the words followed by a blank (e.g. with the expression you have already tried).  
> The second handles the words at the end of the field:  
> Search-String s$  
> Replace with: t

Works like a charm. Thank you 🙂

---

<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:24pm UTC](https://community.mp3tag.de/t/replace-character-only-if-it-is-the-last-letter/14479/4 "2026-02-09T12:24:21Z")

</div>

Closed on February 9, 2026, 12:24pm UTC


