in reply to Regex: first match that is not enclosed in parenthesis
Yes, nested parenthesis are an additional requirement. I forgot to mention it, sorry.
Thanks for both responses, this will nicely replace my iterative approach.