sub parse { my @fields = split /((?:<[^>]+>|{[^}]+})+)/, shift; shift @fields if $fields[0] eq ''; return @fields; }
In reply to Re^3: How to split line of text into array containing macros and non-macro text
by hazylife
in thread How to split line of text into array containing macros and non-macro text
by bulrush
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |