Nice presentation. But, depending on the details of the language being parsed, you may need to add an "s" modifier to that regex ... otherwise, BEGIN/END won't be recognized if it spans a newline.
-- Chip Salzenberg, Free-Floating Agent of Chaos
Comment on Re: Re: Multiple RegEx Matches in a single string