You could include \s in the second character class if you wanted to ignore whitespace.@list = /([SEPARATORS])+([^SEPARATORS])*/g;
In reply to Re^3: split and capture some of the separators
by Jasper
in thread split and capture some of the separators
by shemp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |