Fetch "text A (text B)" or "text A (text B (text C))"

Published on Tue Mar 01 2022

How do I extract then some text A, some text B and some text C if they are in the format some text A ( some text B ( some text C)) Please mind that in some cases may be only some text A ( some text B) https://stackoverflow.com/questions/69047224/how-to-fetch-text-strings-in-regex-in-the-format-abc