I see you already have a solution to your immediate problem. But since the text looks like one of the myriad variations of a Wiki markup language, have you considered looking on http://search.cpan.org for an appropriate parsing module?
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: Extract content from a string
by roboticus
in thread Extract content from a string
by ultranerds
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |