untested
Trivial bug: splits first operand is a regular expression, not a string, so you need to escape the alternation metacharacter. I used to make that mistake all the time too.
In reply to Re^2: Need help with a script
by chromatic
in thread Need help with a script
by kepler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |