# $strrstr(x,y) Last Occurrence of String X in String Y

**URL:** https://community.mp3tag.de/t/strrstr-x-y-last-occurrence-of-string-x-in-string-y/66646
**Category:** Mac
**Created:** [November 27, 2024, 3:46pm UTC](https://community.mp3tag.de/t/strrstr-x-y-last-occurrence-of-string-x-in-string-y/66646 "2024-11-27T15:46:39Z")
**Posts on this page:** 1
**Showing post:** 4

<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: [November 27, 2024, 4:25pm UTC](https://community.mp3tag.de/t/strrstr-x-y-last-occurrence-of-string-x-in-string-y/66646/4 "2024-11-27T16:25:44Z")

</div>

You can test format strings in Convert\>Tag-Tag  
Add apostrophes to escape special characters like `/`.

> [@Scripting Functions](https://community.mp3tag.de/t/scripting-functions/51689/1):
>
> `$strrstr(x,y)` finds the last occurrence of string y in string x.

Are you sure that it says "last occurrence of _string_ y in string x as the documentation that I see says  
`$strrchr(x,y)` finds the last occurrence of _character_ y in string x.  
and there is no function $strrstr().

---

_[View the full topic](https://community.mp3tag.de/t/strrstr-x-y-last-occurrence-of-string-x-in-string-y/66646)._
