I don't know ( much about xml etc... ) or if there is a specific module for this kind of 'loose' parsing , but i suspect that what you want could be hacked from Text::Balanced and it's extract_bracketed method?
Hmmm... on second thoughts, maybe Parse::Gnaw would be a better avenue? Or Parse::RecDescent?
There must be a better way!?!
Update: SPAG
In reply to Re: tagged text parser
by BioLion
in thread tagged text parser
by periapt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |