# if exist string on other string then do...

**URL:** <https://community.mp3tag.de/t/if-exist-string-on-other-string-then-do/18694>\
**Category:** Support\
**Created:** [February 11, 2017, 4:08am UTC](https://community.mp3tag.de/t/if-exist-string-on-other-string-then-do/18694 "2017-02-11T04:08:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![peymanch](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/65b543/32.png) [@peymanch](https://community.mp3tag.de/u/peymanch)\
**Post date:** [February 11, 2017, 4:08am UTC](https://community.mp3tag.de/t/if-exist-string-on-other-string-then-do/18694/1 "2017-02-11T04:08:30Z")

</div>

**hi  
i want find string on other big string on the if function  
please help me what should i do?**

for example:  
big string: %album% = asdfghqwertvbn-asdflg  
string: "qwert"  
i can't use $strstr because this find only first character  
i want find all string on other string

---

<div class="post-metadata">

**Author:** ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)\
**Post date:** [February 11, 2017, 6:05am UTC](https://community.mp3tag.de/t/if-exist-string-on-other-string-then-do/18694/2 "2017-02-11T06:05:49Z")

</div>

In the filter you can use:  
%album% HAS qwert

---

<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:** [February 11, 2017, 6:38am UTC](https://community.mp3tag.de/t/if-exist-string-on-other-string-then-do/18694/3 "2017-02-11T06:38:21Z")

</div>

> [@peymanch](#):
>
> ... i want find string on other big string ... i can't use $strstr because this find only first character

This opinion is not quite right, because the function $strstr does not detect the "first character", ...  
but the function $strstr detects the character position, ...  
where the search string has been located at first, ...  
looking from the left side of the given string to be searched.

If the result of the function $strstr is greater than zero, ...  
then the entire search string is member of the big string.  
The result from the function $strstr gives the first character position, ...  
where the search string has been found within the big string.

DD.20170211.0838.CET

---

<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:26pm UTC](https://community.mp3tag.de/t/if-exist-string-on-other-string-then-do/18694/4 "2026-02-09T12:26:39Z")

</div>


