in reply to Parsing balanced parentheses
If there is any chance the data will contain your delimiter, you should go to Text::Balanced, and check the section with the example
That module is also worth bing familiar with because the tasks it handles come up a lot in contexts where you don't want to switch over to thinking about a recursive grammar.$text = '<A HREF=">>>>">link</A>'; into ( '<A HREF=">>>>">', 'link</A>', "" )
|
|---|