Help - Search - Members - Calendar
Full Version: TAGZ and '('
Hydrogenaudio Forums > Hosted Forums > foobar2000 > General - (fb2k)
fabiospark
I have a performer multiple field where I put things like: Horowitz (piano) or Paul Desmond (alto sax).

I need to extract the words between the '(' and ')' characters.

Can I use $strchr looking for '(' and ')'? How?

Thanks.
picmixer
Something along the lines of
CODE
$puts(string,$right(%album%,$sub($len(%album%),$strchr(%album%,'('))))
$left($get(string),$sub($strchr($get(string),')'),1))
should do the trick.

Replace all instances of %album% with whatever tag you want this code to work with.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.