You've used capturing parens in your pattern. This causes split to include the captured bits in the return list. if you don't want them but do want a grouping, use (?: ... ) instead. See the split docs.
In reply to Re: Why do I get regexp chars in split?
by duff
in thread Why do I get regexp chars in split?
by cormanaz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |