Strchr() for different characters


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

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!

A regular expression allows to define alternatives as search criterion.
See the help on regular expressions:
$regexp('Album (Style)','(.*)(\(|\[).*',$1) -> Album
$regexp('Album [Style]','(.*)(\(|\[).*',$1) -> Album

Or see here: