# 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:** 1\
**Showing post:** 2

<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…

---

_[View the full topic](https://community.mp3tag.de/t/strchr-for-different-characters/55117)._
