More like some bizarre SGML variant than XML. Valid XML can't omit closing tags; the sample data does that everywhere. But yes, this is a job for a real parser not regexen.
In reply to Re^2: Regex problem while parsing tagged, hierarchical data
by Fletch
in thread Regex problem while parsing tagged, hierarchical data
by sivaramanm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |