# Second, Third, ... Occurences Of String

**URL:** https://community.mp3tag.de/t/second-third-occurences-of-string/13990
**Category:** Support
**Created:** [October 12, 2012, 8:00pm UTC](https://community.mp3tag.de/t/second-third-occurences-of-string/13990 "2012-10-12T20:00:07Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [October 13, 2012, 2:02am UTC](https://community.mp3tag.de/t/second-third-occurences-of-string/13990/2 "2012-10-13T02:02:27Z")

</div>

> [@ykeyke](#):
>
> ... is there anyway to return the second, third, and so on of **THE OCCURRENCES OF STRINGS** in a text??? I had been thinking of trimming all text before the first occurrence, and search the next one to find the second, and to trim the text until this, and search again to find the third, and so on... But is there a way to do this directly??? Thanks

Beside the vehicle of the $meta functions ... Mp3tag has no itemlist related functions.

Read there ... about n-th occurence of substring in string ...  
[/t/13079/1](https://community.mp3tag.de/t/13079/1)

Other Example ...

Position 1.

**$cutLeft(%TF%,$strstr(%TF%,' - ')) $strstr(%TF%,$cutLeft(%TF%,$strstr(%TF%,' - ')))**

Position 2.

**$cutLeft($cutLeft(%TF%,$strstr(%TF%,' - ')),$strstr($cutLeft(%TF%,$strstr(%TF%,' - ')),' - ')) $strstr(%TF%,$cutLeft($cutLeft(%TF%,$strstr(%TF%,' - ')),$strstr($cutLeft(%TF%,$strstr(%TF%,' - ')),' - ')))**

Position 3.

**$cutLeft($cutLeft($cutLeft(%TF%,$strstr(%TF%,' - ')),$strstr(%TF%,' - ')),$strstr($cutLeft($cutLeft(%TF%,$strstr(%TF%,' - ')),$strstr(%TF%,' - ')),' - ')) $strstr(%TF%,$cutLeft($cutLeft($cutLeft(%TF%,$strstr(%TF%,' - ')),$strstr(%TF%,' - ')),$strstr($cutLeft($cutLeft(%TF%,$strstr(%TF%,' - ')),$strstr(%TF%,' - ')),' - ')))**

DD.20121013.0600.CEST

---

_[View the full topic](https://community.mp3tag.de/t/second-third-occurences-of-string/13990)._
