http://qs321.pair.com?node_id=794772


in reply to Re: Extracting a parenthesized fragment from a string
in thread Extracting a parenthesized fragment from a string

I'd forgotten about this module, but yes, it could probably do quite well. I'll try a couple of implementations based on the different ideas that have been presented here and see how they compare for readability, speed, and so forth. Cheers!