# Strchr() for different characters

**URL:** <https://community.mp3tag.de/t/strchr-for-different-characters/55117>\
**Category:** Support\
**Created:** [November 15, 2021, 9:51am UTC](https://community.mp3tag.de/t/strchr-for-different-characters/55117 "2021-11-15T09:51:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![autom](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/c6cbf5/32.png) [@autom](https://community.mp3tag.de/u/autom)\
**Post date:** [November 15, 2021, 9:51am UTC](https://community.mp3tag.de/t/strchr-for-different-characters/55117/1 "2021-11-15T09:51:58Z")

</div>

Hi,

can find the position of more than specific character with strchr() function?

e.g.  
i want to search the %album% tag for either ( or [ or + and so on. So i get the first position if one theses characters appears.

I need that for cutting the tag from that position etc.

many thanks!

---

<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 15, 2021, 9:57am UTC](https://community.mp3tag.de/t/strchr-for-different-characters/55117/2 "2021-11-15T09:57:19Z")

</div>

A regular expression allows to define alternatives as search criterion.  
See the help on regular expressions:

> **[Replace with Regular Expression – Mp3tag Documentation](https://docs.mp3tag.de/actions/replace-regexp/)**
>
> Documentation on the Replace with Regular Expression action type that can be performed as Quick Action or as reusable workflow from Action Groups. Mp3tag is the universal Tag Editor.

E.g.  
`$regexp('Album (Style)','(.*)(\(|\[).*',$1)` -\> Album  
`$regexp('Album [Style]','(.*)(\(|\[).*',$1)` -\> Album

Or see here:

> [@Selecting terms between interchangeable (, \[, { brackets](https://community.mp3tag.de/t/selecting-terms-between-interchangeable-brackets/45953/3):
>
> You want to find conditionally matching brackets of three different types. That is either impossible or very verbose within a single regular expression. If you wanted to find pairs of matching simple quotation marks ' and ", that is possible in many engines: (["'])[^"']\*\1 or ("|').\*?$1, or some other combination of matching the start character, optionally advancing and then matching that start character as end character. Your current start character is a left parenthesis ( which needs to be e…

---

<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:29pm UTC](https://community.mp3tag.de/t/strchr-for-different-characters/55117/3 "2026-02-09T12:29:31Z")

</div>


