You're obviously welcome to your view, but I cannot see the purpose in making it so complicated (20+ lines instead of 7).
Or so needlessly inefficient. Calling the regex engine 8 times (twice each for every thing you want to match), rather than once.
And there is absolutely no reason to initialise my vars to undef.
In reply to Re^3: Multiple line records from a command string
by BrowserUk
in thread Multiple line records from a command string
by Preceptor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |